A bit off-topic. But are there any open source projects like this that can be self-hosted, working on a largish local directory of projects?
If you want to create your own solution, the easiest way is using Sphinx Search [3] (searchcode.com uses it too [4]) and a bit more advanced with Lucene [5] (and its related sub-projects) or Xapian [6].
If you want your personal Google Code Search [7] with its powerful scalable Regex functionality, Russ Cox published the related code [8].
[1] http://en.wikipedia.org/wiki/Desktop_search
[2] http://en.wikipedia.org/wiki/Enterprise_search
[3] http://en.wikipedia.org/wiki/Sphinx_(search_engine)
[4] http://www.boyter.org/2014/06/sphinx-searchcode/
[5] http://en.wikipedia.org/wiki/Lucene
[6] http://en.wikipedia.org/wiki/Xapian