zentara has asked for the wisdom of the Perl Monks concerning the following question:
So I figure this has been done before, and was wondering if there are better ways. (Before I get too deep into it :-)
The only drawbacks I see is swish++ likes to ignore alot of short common words, which are Perl keywords...like for, if ,etc; and it is limited to single word searches.
So has anyone else found a method which can limit the search to 1 file, like swish++ ?
My first inclination was just to "cat" all the files together in a big text file, and just search it. But then what would be the best way to compress and search it, retaining the original filenames?
My intuition tells me I want to convert the text to some compressed binary reperesentation, to make the searching faster, and the file smaller.
So I would appreciate any ideas and pointers which anyone may have.(before I go sailing off in the wrong direction :-) ) TIA
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: looking for ideas for managing snippets collection
by cyocum (Curate) on Apr 29, 2004 at 09:28 UTC | |
Re: looking for ideas for managing snippets collection
by Anomynous Monk (Scribe) on Apr 28, 2004 at 23:54 UTC | |
by zentara (Cardinal) on Apr 29, 2004 at 16:57 UTC | |
Re: looking for ideas for managing snippets collection
by artist (Parson) on Apr 29, 2004 at 14:19 UTC |