On Mon, Feb 25, 2008 at 4:56 PM, Jens Kraemer <[EMAIL PROTECTED]> wrote: > not sure, just try it out :-) or upload it somewhere on the ferret wiki.
OK :). I'm sending the example attached to this message. There's two Ruby files (indexer.rb and searcher.rb), along with a text file containing an e-mail from the Enron archives, which is the indexable sample. After extracting it to a directory, running indexer.rb will index that single message. Running searcher.rb will perform a pre-definded search on the index, and print out the result and its score. In my local environment (Ferret 0.11.6 on Linux), a single result is returned, as expected, and it's properly highlighted and everything. Its score is 0. The search is a simple term query for "earnings". -- Bira http://compexplicita.wordpress.com http://compexplicita.tumblr.com
minimal.tar.gz
Description: GNU Zip compressed data
_______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

