You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Uwe Schindler (JIRA)" <ji...@apache.org> on 2016/10/10 15:59:20 UTC
[jira] [Commented] (LUCENE-7486) DisjunctionMaxScorer Initializes
scoreMax to Zero Preventing From Using Negative Scores
[ https://issues.apache.org/jira/browse/LUCENE-7486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15562664#comment-15562664 ]
Uwe Schindler commented on LUCENE-7486:
---------------------------------------
It should be Float.NEGATIVE_INFINTY if you would like to do this.
> DisjunctionMaxScorer Initializes scoreMax to Zero Preventing From Using Negative Scores
> ---------------------------------------------------------------------------------------
>
> Key: LUCENE-7486
> URL: https://issues.apache.org/jira/browse/LUCENE-7486
> Project: Lucene - Core
> Issue Type: Bug
> Components: core/search
> Affects Versions: 5.5.2
> Reporter: Ivan Provalov
>
> We are using a log of probability for scoring, which gives us negative scores.
> DisjunctionMaxScorer initializes scoreMax in the score(...) function to zero preventing us from using negative scores. Is there a reason it couldn't be initialized to something like this:
> float scoreMax = Float.MAX_VALUE * -1;
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org