lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: valid scores for sorting
Date Tue, 26 May 2009 16:16:32 GMT
On Tue, May 26, 2009 at 9:48 AM, 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.

What other issues are you hitting?

> The latest is a function query log(val) which produces both NaN and
> -Infinity values, which kill the TopScoreDocCollector (invalid docids
> are produced).
>
>> Is NEG_INF a valid score for you?
>
> It was.... people are free to create whatever functions they want.  We
> never explicitly spelled out what happens when functions return -Inf
> or NaN, but everything still worked.  Now we actually lose documents
> and they are replaced with invalid docids.

Hmmm... in the past (TopDocCollector in 2.4.x), hits with such scores
(Nan, -Inf, in fact any non-positive score) were skipped entirely.

> To work around it, I've temporarily checked the score for NaN or
> -Infinity and replaced it with -MaxVal.  I guess that will become
> permanent if we decide that those are not valid scores for scorers to
> produce.

I think we should state that Nan/Inf/-Inf are not valid scores?

Mike

---------------------------------------------------------------------
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