Searching Source Code with Plucene

cwest on 2004-04-22T20:47:01

At work we've got a lot of code in CVS. I've only been there for months but it's still hard to find things. I decided to change that. A mixture of Plucene, 'file', and 'ctags -x' has come to the rescue. To be fair, mostly Plucene has come to the rescue. The index is still building, has been for quite a while, but this is what I can do to find things now.

shell> pairdoc tag:main and file:test and '"void main"' and type:C Boy is that helpful. The tags portion in particular. In a swamp of related classes how do you find which one implements the 'user_id()' method? It used to be a lot of grepping.

shell> pairdoc tag:user_id

I dig Plucene, just wish these dang indexes could build faster. I know, I know, problems inherent with search.

Posted from caseywest.com, comment here.