FAQ
Hi,

I am currently working on the calculation of score part in Lucene. And I
encounter a part that I do not understand.
return raw * Similarity.decodeNorm(norms[doc]); // normalize for field

As can be seen from the code above, the Similarity method decodeNorm() will
be called to decode the byte formatted value to change it back into float
value. This value actually represent the normalization value for the fields;
title, url, content, host and anchor.

I would like to know how it actually select the field to be included in the
calculation. When I print out the value, I noticed only one of the field
will be selected. Can anyone advise me on this? How the field is selected,
and why not all the field is used in the calculation?

Thanks
--
View this message in context: http://www.nabble.com/Score-Boosting-tp19043489p19043489.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org

Search Discussions

  • Grant Ingersoll at Aug 22, 2008 at 7:34 pm
    Normalization is done on a field by field basis, as is most scoring.
    It doesn't factor all fields in, b/c someone might not be querying all
    fields. The field it does use is based on the query.
    On Aug 18, 2008, at 10:44 PM, blazingwolf7 wrote:


    Hi,

    I am currently working on the calculation of score part in Lucene.
    And I
    encounter a part that I do not understand.
    return raw * Similarity.decodeNorm(norms[doc]); // normalize for
    field

    As can be seen from the code above, the Similarity method
    decodeNorm() will
    be called to decode the byte formatted value to change it back into
    float
    value. This value actually represent the normalization value for the
    fields;
    title, url, content, host and anchor.

    I would like to know how it actually select the field to be included
    in the
    calculation. When I print out the value, I noticed only one of the
    field
    will be selected. Can anyone advise me on this? How the field is
    selected,
    and why not all the field is used in the calculation?

    Thanks
    --
    View this message in context: http://www.nabble.com/Score-Boosting-tp19043489p19043489.html
    Sent from the Lucene - Java Users mailing list archive at Nabble.com.


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
    For additional commands, e-mail: java-user-help@lucene.apache.org


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
    For additional commands, e-mail: java-user-help@lucene.apache.org

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupjava-user @
categorieslucene
postedAug 19, '08 at 2:44a
activeAug 22, '08 at 7:34p
posts2
users2
websitelucene.apache.org

2 users in discussion

Blazingwolf7: 1 post Grant Ingersoll: 1 post

People

Translate

site design / logo © 2022 Grokbase