msokolov commented on code in PR #16667:
URL: https://github.com/apache/lucene/pull/16667#discussion_r4048927116


##########
lucene/core/src/java/org/apache/lucene/search/BooleanQuery.java:
##########
@@ -369,6 +369,18 @@ public Query rewrite(IndexSearcher indexSearcher) throws 
IOException {
       if 
(mustNotClauses.stream().anyMatch(p.or(clauseSets.get(Occur.FILTER)::contains)))
 {
         return new MatchNoDocsQuery("FILTER or MUST clause also in MUST_NOT");
       }
+      for (Query q : clauseSets.get(Occur.MUST)) {

Review Comment:
   can we merge this with the above check and also include FILTER?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to