Hi!

On Wed, Feb 27, 2008 at 03:04:27PM -0300, Bira wrote:
[..]
> By the way, did the message containing the example arrive?

yes it did. I tried it out and got the same result as you - score of
0.0.

Removing the :index => :omit_norms option from the FieldInfos
declaration leads to the expected result, a non-zero score. It's not
clear from the API docs if this is the expected behaviour:

:omit_norms             | Same as :yes except omit the
                        | norms file. The norms file can
                        | be omitted if you don't boost
                        | any fields and you don't need
                        | scoring based on field length.


Here's Ferret's explanation of the score computation:

0.0 = field_weight(message:earnings in 0), product of:
  3.162278 = tf(term_freq(message:earnings)=10)
  0.3068528 = idf(doc_freq=1)
  0.0 = field_norm(field=message, doc=0)


Looks like Ferret should rather not consider the zero field_norm when computing
the score in this case.


Cheers,
Jens


-- 
Jens Krämer
Finkenlust 14, 06449 Aschersleben, Germany
VAT Id DE251962952
http://www.jkraemer.net/ - Blog
http://www.omdb.org/     - The new free film database
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to