News for hackers. Stuff that matters.
Re:Koders: Search Over 3 Million Lines of Open Source Code A... by JoshTriplett on Sunday November 27, 2011 @09:06PM (#3284113)
> 1. Regex search support. 2. Browse full file. 3. Filter search to single project.

Regex search doesn't seem like a requirement here; for searching code, it usually suffices to include symbols when you index. Might also help to have some language-specific text classifiers, so you can say "search comments" or "search strings" or "search code".

Browsing the full file seems quite important to check the results. For that, you'll want line numbers, per-line anchors, and basic highlighting support for popular languages, in order of priority.

Filtering to a single project doesn't actually seem that helpful; if I know what project I want to search, I can clone it locally and grep it myself. Code search engines help with questions like "does anyone use this API?" or "how have other people processed the data from this library?", which need to search all projects. Filtering by language might help, though (to avoid problems with APIs provided in umpteen languages).

There are no comments on this comment yet.