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

Alexander Kanarsky commented on LUCENE-6679:
--------------------------------------------

[~shebiki] I agree, the code is different in the trunk and branch_5x but the 
explain issue is still present in both branches:

{code}
 if (match) {
  assert s.score() == 0f;
  return Explanation.match(0f, "Match on id " + doc);
} else {
  return Explanation.match(0f, "No match on id " + doc); // here it should be 
Explanation.noMatch("No match on id " + doc); 
}
{code}

In the branch_5x that code is in FilteredQuery (line 299), in the trunk it is 
in Filter.createWeight(...)

> Filter's Weight.explain returns an explanation with isMatch==true even on 
> documents that don't match
> ----------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-6679
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6679
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Adrien Grand
>         Attachments: LUCENE-6679.patch
>
>
> This was reported by Trejkaz on the java-user list: 
> http://search-lucene.com/m/l6pAi19h4Y3DclgB1&subj=Re+What+on+earth+is+FilteredQuery+explain+doing+



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to