lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <yo...@lucidimagination.com>
Subject valid scores for sorting
Date Tue, 26 May 2009 13:48:10 GMT
I'm attempting to switch Solr to use the new Collector framework to
get per-segment sorting and have been hitting some issues.
The latest is a function query log(val) which produces both NaN and
-Infinity values, which kill the TopScoreDocCollector (invalid docids
are produced).

results = {org.apache.lucene.search.ScoreDoc[7]@2039}
[0] = {org.apache.lucene.search.ScoreDoc@2042}"doc=0 score=2.0"
[1] = {org.apache.lucene.search.ScoreDoc@2043}"doc=4 score=1.39794"
[2] = {org.apache.lucene.search.ScoreDoc@2044}"doc=3 score=1.0"
[3] = {org.apache.lucene.search.ScoreDoc@2045}"doc=5 score=0.69897"
[4] = {org.apache.lucene.search.ScoreDoc@2046}"doc=1 score=-2000000.0"
[5] = {org.apache.lucene.search.ScoreDoc@2047}"doc=2147483647 score=-Infinity"
[6] = {org.apache.lucene.search.ScoreDoc@2048}"doc=2147483647 score=-Infinity"

So either we need to clarify the valid values for score() or we need
to change how the queue does comparisons so that this works again.

-Yonik
http://www.lucidimagination.com

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message