[
https://issues.apache.org/jira/browse/LUCENE-901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12500576
]
Hoss Man commented on LUCENE-901:
---------------------------------
I'm not sure if i agree with this concept. Do we really want the curve of
values from queryNorm to have a step drop down from really *huge* values when
sumOfSquaredWeights is "near" zero to "1" when sumOfSquaredWeights becomes so
close to zero it can only be represented as 0.0f ?
Float.MAX_VALUE seems like a better choice then 1, but I haven't really thought
through wether or not that will still trigger NaN scores.
> 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
>
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]