lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <ysee...@gmail.com>
Subject Re: incorrect score normalization in hits
Date Fri, 23 Sep 2005 15:27:33 GMT
Never mind... my mistake.
FieldSortedHitQueue takes care of tracking maxscore and normalizes the score
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 first
> 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 patch
> 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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message