apache / lucene

Apache Lucene open-source search software
https://lucene.apache.org/
Apache License 2.0
2.63k stars 1.02k forks source link

Boolean Query with MatchNoDocs in MUST/FILTER could be rewritten [LUCENE-9208] #10248

Open asfimport opened 4 years ago

asfimport commented 4 years ago

Currently BooleanQuery rewrites to MatchNoDocs query if MUST_NOT clause contains MatchAllDocs . Same approach could be applied if FILTER/MUST clauses contains MatchNoDocs


Migrated from LUCENE-9208 by Nirmal Chidambaram Attachments: LUCENE-9208.patch

asfimport commented 4 years ago

Lucene/Solr QA (migrated from JIRA)

+1 overall
Vote Subsystem Runtime Comment
Prechecks
+1 test4tests 0m 0s The patch appears to include 1 new or modified test files.
master Compile Tests
+1 compile 0m 21s master passed
Patch Compile Tests
+1 compile 0m 23s the patch passed
+1 javac 0m 23s the patch passed
+1 Release audit (RAT) 0m 23s the patch passed
+1 Check forbidden APIs 0m 23s the patch passed
+1 Validate source patterns 0m 23s the patch passed
Other Tests
+1 unit 3m 7s core in the patch passed.
5m 20s
Subsystem Report/Notes
JIRA Issue LUCENE-9208
JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12992694/LUCENE-9208.patch
Optional Tests compile javac unit ratsources checkforbiddenapis validatesourcepatterns
uname Linux lucene1-us-west 4.15.0-54-generic #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool ant
Personality /home/jenkins/jenkins-slave/workspace/PreCommit-LUCENE-Build/sourcedir/dev-tools/test-patch/lucene-solr-yetus-personality.sh
git revision master / 47386f8cca9
ant version: Apache Ant(TM) version 1.10.5 compiled on March 28 2019
Default Java LTS
Test Results https://builds.apache.org/job/PreCommit-LUCENE-Build/252/testReport/
modules C: lucene/core U: lucene/core
Console output https://builds.apache.org/job/PreCommit-LUCENE-Build/252/console
Powered by Apache Yetus 0.7.0 http://yetus.apache.org

This message was automatically generated.