[
https://issues.apache.org/jira/browse/LUCENE-9446?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17170869#comment-17170869
]
ASF subversion and git services commented on LUCENE-9446:
---------------------------------------------------------
Commit 83569665e7a235a208752e3733586d2cb5c1a4e0 in lucene-solr's branch
refs/heads/branch_8x from Julie Tibshirani
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=8356966 ]
LUCENE-9446: In boolean rewrite, remove MatchAllDocsQuery filter clauses (#1709)
Previously, we only removed 'match all' FILTER clauses if there was at least one
MUST clause. Now they're also removed if there is another distinct FILTER
clause.
This lets boolean queries like `#field:value #*:*` be written to `#field:value`.
> Boolean rewrite could remove more MatchAllDocsQuery filters
> -----------------------------------------------------------
>
> Key: LUCENE-9446
> URL: https://issues.apache.org/jira/browse/LUCENE-9446
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Julie Tibshirani
> Priority: Minor
> Time Spent: 50m
> Remaining Estimate: 0h
>
> It seems that BooleanQuery rewrites will remove a MatchAllDocsQuery 'filter'
> clause only if there is at least one 'must' clause. I think we could also
> remove the 'filter' clause if there are no 'must' clauses, but at least one
> other 'filter' clause.
> This could let queries like {{#field:value #*:*}} be rewritten to
> {{#field:value}}.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]