You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adrien Grand (JIRA)" <ji...@apache.org> on 2018/12/12 11:29:00 UTC

[jira] [Commented] (LUCENE-8606) ConstantScoreQuery looses explain details of wrapped query

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

Adrien Grand commented on LUCENE-8606:
--------------------------------------

Would you like to work on a fix?

> ConstantScoreQuery looses explain details of wrapped query
> ----------------------------------------------------------
>
>                 Key: LUCENE-8606
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8606
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Christian Ziech
>            Priority: Major
>
> Right now the ConstantScoreWeigth used by the ConstantScoreQuery is not adding the details of the wrapped query to the explanation. 
> {code}
> if (exists) {
>     return Explanation.match(score, getQuery().toString() + (score == 1f ? "" : "^" + score));
> } else {
>     return Explanation.noMatch(getQuery().toString() + " doesn't match id " + doc);
> }
> {code}
> This is kind of inconvenient as it makes it kind of hard to figure out which term finally really matched when one e.g. puts a BooleanQuery into the FILTER clause of another BooleanQuery.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org