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

Doug Cutting commented on LUCENE-698:
-------------------------------------

> If boost is zero, then
> sumOfSquaredWeights() returns zero as well, resulting in a
> queryNorm of Infinity (due to a div by zero if DefaultSimilarity is
> used). Then it multiplies boost and queryNorm and 0*Infinity=NaN.

The bug here to me seems that queryNorm is Infinity.  A boost of zero has a 
reasonable interpretation (don't influence scoring), but I don't see how a 
queryNorm of Infinity is ever useful.  So perhaps we can remove the NaN by 
modifying the default implementation of queryNorm to return 1.0 instead of 
Infinity when passed zero.  Would that cause any harm?

> FilteredQuery ignores boost
> ---------------------------
>
>                 Key: LUCENE-698
>                 URL: https://issues.apache.org/jira/browse/LUCENE-698
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Search
>    Affects Versions: 2.0.0
>            Reporter: Yonik Seeley
>            Assignee: Michael Busch
>            Priority: Minor
>             Fix For: 2.2
>
>         Attachments: lucene-698.patch
>
>
> Filtered query ignores it's own boost.

-- 
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]

Reply via email to