punkish has asked for the wisdom of the Perl Monks concerning the following question:
Yesterday I decided to "graduate" my application's home-grown search mechanism (which worked quite well, mind you, but in a limited way since it required a SQL database to work, and wouldn't do fuzzy searches) to something more "institutional". Searching around in the CPAN-space, I found Plucene and Kinosearch, both Perlized versions of Lucene. Since I had more awareness of Plucene, and since its version number is higher than Kino ;-), I decided to give it a whirl.
Likely I am being dense, but I found Plucene's documentation very sparse. In fact, in the beginning I didn't have any idea of even the first steps. There was a suggestion in the docs to read a couple of "onjava" articles on Lucene given that Plucene mirrored Lucene so well. I read those articles, but since I understand zip about Java, that didn't get me anywhere.
Then I found Plucene::Simple. That got my first steps going, but I was stuck again. Then I found a circa 2004 article by Simon Cozens on perl.com which actually gave step-by-step instructions on how to implement a web-based search. That was nice, but surprising that it took so much digging around.
The article referenced above required downloading other modules (Text::Context and family, among others) in order to make the search results nicer looking. After all this, I still don't know how to do several other things that my home-grown solution had such as calculating and ordering by relevance scores.
I have some experience with implementing Swish-e and have found that to be relatively easier than my experience with Plucene above. There is also ht:dig... maybe other mechanisms as well.
|
|---|