3 ms·
What is a good open-source system for code search if I want to plug 100 or so git repos into it and have it available over the web? GH search is not desirable b
by smarx007 3y ago
What is a good open-source system for code search if I want to plug 100 or so git repos into it and have it available over the web? GH search is not desirable because it would search too broadly and would not cover repos on Gitlab etc.
I looked at the Debian code search [1] in the past, but for some reason thought it required a bit too much effort and didn't complete my investigation of it. Though [2] looks pretty approachable.
Sourcegraph mentioned Zoekt [3], but I am not sure how usable it is. If it was pretty good, why did Sourcegraph OSS exist?
Finally, from all the discussion how Sourcegraph OSS was very behind in the past few years, I guess there is no serious plan to fork it?
Edit: GCS release [4] seems to have been open-sourced without a frontend.
Edit2: Livegrep [5] and Opengrok [6] were recommended higher in the thread. Quite excited to try them out but if someone has working Docker Compose configs, I would be very thankful for the head start.
Edit3: there is also Eureka [7]. Seems less powerful but easier to deploy.
[1]: https://github.com/Debian/dcs https://github.com/Debian/dcs
[2]: https://github.com/Debian/dcs/blob/main/howto/building.md https://github.com/Debian/dcs/blob/main/howto/building.md
[3]: https://github.com/sourcegraph/zoekt https://github.com/sourcegraph/zoekt
[4]: https://github.com/google/codesearch https://github.com/google/codesearch
[5]: https://github.com/livegrep/livegrep https://github.com/livegrep/livegrep
[6]: https://oracle.github.io/opengrok/ https://oracle.github.io/opengrok/
[7]: https://github.com/Rajeev-K/eureka https://github.com/Rajeev-K/eureka
- __float 3y ago[4] is not really a usable 'product'. Livegrep (https://github.com/livegrep/livegrep https://github.com/livegrep/livegrep) was inspired by it and is very usable. [3] used to be a Google open source project as well, but it fell out of maintenance, and Sourcegraph took it over. It powers most of the basic regex/literal search in Sourcegraph. Mozilla's code is searchable in Searchfox (https://searchfox.org/ https://searchfox.org/) which uses the indexer from Livegrep, combined with their own Git indexer and language-specific cross reference databases. OpenGrok (https://github.com/oracle/opengrok https://github.com/oracle/opengrok) is also rather well known, but I have found it to have a slightly worse UI than alternatives.
- smarx007 3y agoThere is also Hound [8]. [8]: https://github.com/hound-search/hound https://github.com/hound-search/hound
- smarx007 3y agoAnd 'cs' for smaller repos and CLI use. [9]: https://github.com/boyter/cs https://github.com/boyter/cs