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 ]

acme (189)

acme
  (email not shown publicly)
http://www.astray.com/

Leon Brocard (aka acme) is an orange-loving Perl eurohacker with many varied contributions to the Perl community, including the GraphViz module on the CPAN. YAPC::Europe was all his fault. He is still looking for a Perl Monger group he can start which begins with the letter 'D'.

Journal of acme (189)

Thursday June 23, 2005
05:09 AM

Search::Mousse

[ #25325 ]
Search::Mousse is a simple and fast inverted index that I use for my website. Why write my own? Because it has special features that I need, and it needs to be fast on old hardware. You can add documents with keywords and then search using keywords (eg all orange photos and recipes). But recently it's had some feature creep.

One of the new features is related items. By looking at the keywords, we can guess what items are similar to the item you are looking at. So a photo of a birthday girl with cake has related photos which are the birthday girl and the cake, and a recipe of Chili orange oil has related recipes which are various other oils (some with orange).

clkao has been trying to find some blood in London to make soup, and was trying to find recipes by searching for blood. As you can see, blood oranges are distracting. So, with a little help from Search::QueryParser and Set::Scalar, I added more search features so that he can finally search for blood -orange. (Amusingly, one of the hits is blood 0range with a zero).

And that's today's module! Tell me if you find it interesting. If you need something more general, I'd go for Plucene or the newcomer Search::Kinosearch or maybe even let your database do the work...

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 | Reply
Loading... please wait.