You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2011/01/25 14:22:48 UTC
[jira] Resolved: (LUCENE-901) DefaultSimilarity.queryNorm() should
never return Infinity
[ 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org