Building a code search engine for java code in git repositories

Posted by zero1 on Stack Overflow See other posts from Stack Overflow or by zero1
Published on 2012-09-09T03:14:04Z Indexed on 2012/09/09 3:38 UTC
Read the original article Hit count: 210

Filed under:
|

I'm trying to build a Java code search engine. Apart from just searching for keywords, I would also like cross-referencing between classes to work. It should work the way eclipse's referencing works - click on anything to open the definition. Bonus would be if something like search-all-usages-of-foo works.

I'm thinking of using Apache Solr to index the files and build the basic search. But I'm not sure how I'd do the crossreferencing part since Solr doesn't understand Java code. Any suggestions on what I could use here?

EDIT: I mainly want to index a lot of java git repositories.

© Stack Overflow or respective owner

Related posts about java

Related posts about code-search