[ 
https://issues.apache.org/jira/browse/LUCENE-7486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15565857#comment-15565857
 ] 

ASF subversion and git services commented on LUCENE-7486:
---------------------------------------------------------

Commit 3bd3a4cbc460db20e29e242f27041c20a03218de in lucene-solr's branch 
refs/heads/branch_6x from [~thetaphi]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=3bd3a4c ]

LUCENE-7486: DisjunctionMaxQuery does not work correctly with queries that 
return negative scores


> 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
>            Assignee: Uwe Schindler
>         Attachments: LUCENE-7486.patch, LUCENE-7486.patch
>
>
> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to