You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/02/09 18:04:00 UTC

[jira] [Commented] (LUCENE-10412) Improve handling of MatchNoDocsQuery in rewrite rules

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

ASF subversion and git services commented on LUCENE-10412:
----------------------------------------------------------

Commit 69d3a1d6af8e16f5eceac5eb90d1cb99e17ab7af in lucene's branch refs/heads/main from Adrien Grand
[ https://gitbox.apache.org/repos/asf?p=lucene.git;h=69d3a1d ]

LUCENE-10412: Improve handling of MatchNoDocsQuery in rewrites. (#664)



> Improve handling of MatchNoDocsQuery in rewrite rules
> -----------------------------------------------------
>
>                 Key: LUCENE-10412
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10412
>             Project: Lucene - Core
>          Issue Type: Wish
>            Reporter: Adrien Grand
>            Priority: Minor
>
> Having MatchNoDocsQuery in your query tree usually doesn't make the query slower, but by recognizing it in rewrite rules, we could perform rewrites which would then sometimes unlock other rewrite rules.
> For instance if you have a boolean query with 2 should clauses where one is a MatchAllDocsQuery and the other one is a MatchNoDocsQuery, we would naively run it as a disjunction today, while we could rewrite it to a MatchAllDocsQuery and leverage its specialized bulk scorer.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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