You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Yonik Seeley <ys...@gmail.com> on 2005/10/27 21:39:49 UTC

score normalization

A couple of things about score normalization...
a) search(weight,filter,ndocs) does not do normalization
b) search(weight,filter,ndocs,sort) does do normalization... even if the
sort is by score only
c) because of (b), the normalized scores given by MultiSearcher.search
(weight,filter,ndocs,sort)
may be out of whack (original scores of 1.1 and 100.1 for docs on different
searchers will both be normalized to 1.0).

One way to "fix" this is to simply not normalize scores on the expert level
search methods, and provide a maxScore so that Hits (or anyone else) can do
normalization if desired.

At a minimum, we should document which methods will normalize scores.

Thoughts?

-Yonik
Now hiring -- http://forms.cnet.com/slink?231706