On Tue, May 26, 2009 at 9:48 AM, Yonik Seeley
<yo...@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-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org

Reply via email to