Page MenuHomePhabricator

Investigate alternative codesearch backends
Open, LowestPublic

Description

https://searchfox.org/
https://github.com/mozsearch/mozsearch
https://billmccloskey.wordpress.com/2016/06/07/searchfox/

Specifically, the indexing of history and symbols is extremely appealing. Need to investigate how complicated it is to setup, whether it supports our bajillion git repositories well, and if it can do PHP symbol analysis.

Event Timeline

Legoktm triaged this task as Lowest priority.Dec 30 2017, 3:10 AM
Legoktm created this task.

I've been wanting to build something based on phabricator and elasticsearch for a long time now. Phabricator already has really good support for PHP symbol analysis and we have excellent ElasticSearch infrastructure...

https://github.com/google/zoekt is another one I found, which has symbol support via ctags.

I've been wanting to build something based on phabricator and elasticsearch for a long time now. Phabricator already has really good support for PHP symbol analysis and we have excellent ElasticSearch infrastructure...

That would be neat :) My goal was to do as little work as possible though, and find a usable upstream project :) From my research, it seems like most regex code search engines are based on https://swtch.com/%7Ersc/regexp/regexp4.html

Legoktm renamed this task from Investigate https://searchfox.org/ as a codesearch backend to Investigate alternative codesearch backends.Sep 18 2018, 11:26 PM

https://about.sourcegraph.com/blog/sourcegraph-is-now-open-source/ was one of the projects I had my eye on. I set it up on cloud services in like 10 minutes, but ran into T205946. The PHP symbol search didn't work, and returned internal service errors. Also it looks like you need to enable some extra service thing that may or may not be proprietary for it to use a stored index for code searches.

@Legoktm: I've been eyeing sourcegraph for a while now as well. It's a pretty solid project, I think it's worth looking into further.

I’m interested in Sourcegraph too. The PHP extension was installed on your test instance? https://github.com/sourcegraph/sourcegraph-php/blob/master/README.md#usage

I’m interested in Sourcegraph too. The PHP extension was installed on your test instance? https://github.com/sourcegraph/sourcegraph-php/blob/master/README.md#usage

I believe so. Unfortunately I think it's stalled given that they're now mixing proprietary and free code in the same repository (see https://github.com/sourcegraph/sourcegraph/blob/master/LICENSE).