lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shai Erera <ser...@gmail.com>
Subject Re: valid scores for sorting
Date Tue, 26 May 2009 13:52:31 GMT
We've decided in 1575 to pre-populate HitQueue with sentinel values with
score = Float.NEG_INF, as we assumed these scores will not be produced. TSDC
instantiates HitQueue with pre-filling turned on.

Is NEG_INF a valid score for you?

On Tue, May 26, 2009 at 4:48 PM, Yonik Seeley <yonik@lucidimagination.com>wrote:

> 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