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

Michael Busch updated LUCENE-698:
---------------------------------

    Attachment: lucene-698.patch

With this patch FilteredQuery takes the boost into account for
scoring. It includes a test that fails with the trunk version
and passes with this patch.

This patch also removes one test from TestSimpleExplanations:
testFQ7(). These tests check if the score and the value in the 
explanation are the same. testFQ7() in particular verifies this
for a FilterQuery with a boost of 0. But with a boost of 0 the 
score and the explanation has the value NaN, which makes
assertEquals() fail. So I believe this is a incorrect test case.
We just didn't notice it before because FilteredQuery did not
take the boost into account.

All unit tests pass.

> 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