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

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

Commit 9285548ee08a70686e0dac774d04422dbd43860b in lucene-solr's branch 
refs/heads/branch_8x from Julie Tibshirani
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=9285548 ]

LUCENE-10022: Rewrite empty DisjunctionMaxQuery to MatchNoDocsQuery

It's possible to create a DisjunctionMaxQuery with no clauses. This is now
rewritten to MatchNoDocsQuery, matching the approach we take for BooleanQuery.


> Empty DisjunctionMaxQuery can rewrite to MatchNoDocsQuery
> ---------------------------------------------------------
>
>                 Key: LUCENE-10022
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10022
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Julie Tibshirani
>            Priority: Minor
>              Labels: newdev
>         Attachments: LUCENE-10022.patch
>
>
> It's possible to create a {{DisjunctionMaxQuery}} with no clauses. This could 
> be rewritten to {{MatchNoDocsQuery}}, matching the approach we take for 
> {{BooleanQuery}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to