We have score!=score (same variable) - just wondering what that was
trying to accomplish, or whether it can just be dropped. Its also in
BoostedQuery, so it almost seems on purpose. Even with a float, score
has got to equal score, right? Is this some tricky check I don't
understand, or a mistake?
public float score() throws IOException {
float score = qWeight * vals.floatVal(doc);
// current Lucene sorting priority queues can't handle NaN and
-Infinity
if (score != score || score==Float.NEGATIVE_INFINITY) return
-Float.MAX_VALUE;
return score;
}
--
- Mark
http://www.lucidimagination.com