On Sat, Feb 28, 2009 at 3:02 PM, Peter Keegan <peterlkee...@gmail.com> wrote: >> in situations where you deal with simple query types, and matching query > structures, the queryNorm >> *can* be used to make scores semi-comparable. > > Hmm. My example used matching query structures. The only difference was a > single term in a field with zero weight that didn't exist in the matching > document. But one score was 3X the other.
But the zero boost was an index-time boost, and the queryNorm takes into account query-time boosts and idfs. You might get closer to what you expect with a query time boost of 0.0f The other thing affecting the score is the coord factor - the fact that fewer of the optional terms matched (1/2) lowers the score. The coordination factor can be disabled on any BooleanQuery. If you do both of the above, I *think* you would get the same scores for this specific example. -Yonik http://www.lucidimagination.com --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org