Hello,

this might be slightly off-topic here, but still I'd like to thank all contributors for their amazing work on Lucy.

Recently I've built a search feature for my web IRC logs with Lucy, and I found the (Perl-)API nice to use, and the error messages very helpful too. (Except that one time when I managed to make lucy + perl 5.10.1 segfault; sadly I didn't manage to reproduce it).

So, please keep up the good work!

Some details:

An example search can be found here: http://irclog.perlgeek.de/perl6/search/?nick=timtoady&q=threads The backend code is here: https://github.com/moritz/ilbot/blob/master/lib/Ilbot/Backend/Search.pm

For the indexing I lump together all subsequent lines by the same nick into one document, and store the database IDs as a comma-separate value in a second field, and the day in a third field. Each IRC channel has a separate index.

Then when displaying the search results, I retrieve all lines for that day and channel from the database or cache (which is fast enough, and much simpler than building complicated queries), and filter out the search results, plus a few lines before and afterward for context.

So far I'm very happy with theses tradeoffs, and like the results.

Cheers,
Moritz

Reply via email to