[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lucene-dev
Subject:    Re: incorrect score normalization in hits
From:       Yonik Seeley <yseeley () gmail ! com>
Date:       2005-09-23 15:27:33
Message-ID: c68e39170509230827310ebd99 () mail ! gmail ! com
[Download RAW message or body]


Never mind... my mistake.
FieldSortedHitQueue takes care of tracking maxscore and normalizes the scor=
e
in fillFields().

-Yonik

On 9/21/05, Yonik Seeley <yseeley@gmail.com> wrote:
>
> Hits does normalization based on the score of the first document
> "scoreDocs[0].score"
> This is a problem if sort is on anything other than score, since the firs=
t
> document won't necessarily be the highest scoring.
>
> I propose fixing this by adding a field to TopDocs called "maxScore", and
> using that instead of the score of the first document. I'll work up a pat=
ch
> unless either:
> a) someone can think of a better way to fix it
> b) people don't care if scores are normalized by Hits for non-score sorts
>
> Thoughts?
>
> -Yonik
> Now hiring -- http://tinyurl.com/7m67g




--
-Yonik
Now hiring -- http://tinyurl.com/7m67g


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic