Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

cwest (1514)

cwest
  (email not shown publicly)
http://caseywest.com/
AOL IM: caseyrwest (Add Buddy, Send Message)

Perl geek.

Journal of cwest (1514)

Thursday April 22, 2004
03:47 PM

Searching Source Code with Plucene

[ #18437 ]

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.

New comment creation has been disabled on this discussion.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login
Loading... please wait.