12

I'm looking for a way to search through our subversion repository or just packaged source code.

Are there any downloadable servers/tools like Google Code Search to index source code (preferable with support of version control systems like svn) and allow us to search in it?

Is there any tool that will index documents too?

Ira Baxter
  • 88,629
  • 18
  • 158
  • 311
m_vitaly
  • 11,389
  • 4
  • 43
  • 59

6 Answers6

6

FishEye or OpenGrok possibly.

There are many tools that will index documents.

alanc
  • 3,921
  • 18
  • 24
time4tea
  • 2,081
  • 3
  • 16
  • 20
  • These are good. But is there a system like this that will index both code and documents from svn? Or should I use two systems: one for code and another for documents? Does OpenGrok index old revisions too? – m_vitaly May 11 '09 at 15:38
4

I believe the source code for Google Search is available here. It's implemented in Go https://code.google.com/p/codesearch/

4

Google made their internal Kythe source code analyser toolset available on GitHub, see http://www.kythe.io/.

It does a lot more than a simple text-level indexer. At the core it builds an AST graph from the source code and provide tools that operate on it and query it.

tamas.kenez
  • 5,941
  • 2
  • 21
  • 31
2

I use glimpse for code search. I use the free command line tool, and not the paid web interface. It's very quick, and can be combined with other tools to quickly find what your looking for. I find it's easy to setup multiple repositories for different branches of the code. Additionally, I've created a few scripts to help query, format, and colorize the results.

brianegge
  • 26,898
  • 12
  • 70
  • 97
1

A language-sensitive source code search engine can be found at SD Source Code Search Engine. It can handle many languages at the same time. Searches can be performed for patterns in a specific langauge, or patterns across languages (such as "find identifiers involving TAX"). By being sensitive to langauge tokens, the number of false positives is reduced, saving time for the user. It understands C, C++, C#, COBOL, Java, ECMAScript, Java, XML, Verilog, VHDL, and a number of other languages. [I'm a principal at the company]

Ira Baxter
  • 88,629
  • 18
  • 158
  • 311
1

Hound - code search tool with Web UI

KindDragon
  • 5,743
  • 4
  • 45
  • 72