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

Michael Busch commented on LUCENE-698:
--------------------------------------

> but we should probably also fix FilteredQuery so that a boost of 0 
> produces some other result then just a NaN score (either an exception,
> or a score of 0) since as you say: NaN scores are bad.

TermQuery actually behaves the same way. 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.



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