[ 
https://issues.apache.org/jira/browse/LUCENE-901?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Muir resolved LUCENE-901.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 3.1

This one is fixed (there is a Nan/Inf check in queryNorm added fairly recently)


> DefaultSimilarity.queryNorm() should never return Infinity
> ----------------------------------------------------------
>
>                 Key: LUCENE-901
>                 URL: https://issues.apache.org/jira/browse/LUCENE-901
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Search
>            Reporter: Michael Busch
>            Priority: Trivial
>             Fix For: 3.1
>
>
> Currently DefaultSimilarity.queryNorm() returns Infinity if 
> sumOfSquaredWeights=0.
> This can result in a score of NaN (e. g. in TermScorer) if boost=0.0f.
> A simple fix would be to return 1.0f in case zero is passed in.
> See LUCENE-698 for discussions about this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to