You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Steven White <sw...@gmail.com> on 2018/12/16 01:26:30 UTC

Solr schema to parse and search source code

Hi everyone,

I'm in need of providing a search engine to search source code such as
Java, C++, PERL, Visual Basic, etc.

My questions are:
1) Are there existing open source source code parsers I can use that will
scan a source code and return it as elements such as comments, function
names, class names, variables, etc. and
2) What should my Solr schema configuration should be like?

If you have done this and can share you solution, that would be great.

I will be using the latest version of Solr for this project.

Thanks

Steve

Re: Solr schema to parse and search source code

Posted by Alexandre Rafalovitch <ar...@gmail.com>.
https://microsoft.github.io/language-server-protocol/ is probably your best bet.

But also, perhaps you can just use or start from SourceGraph?
https://sourcegraph.com/start

Regards,
   Alex.
On Sat, 15 Dec 2018 at 20:26, Steven White <sw...@gmail.com> wrote:
>
> Hi everyone,
>
> I'm in need of providing a search engine to search source code such as
> Java, C++, PERL, Visual Basic, etc.
>
> My questions are:
> 1) Are there existing open source source code parsers I can use that will
> scan a source code and return it as elements such as comments, function
> names, class names, variables, etc. and
> 2) What should my Solr schema configuration should be like?
>
> If you have done this and can share you solution, that would be great.
>
> I will be using the latest version of Solr for this project.
>
> Thanks
>
> Steve