We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5816d9 commit ba1b77fCopy full SHA for ba1b77f
modules/elasticsearch/src/main/java/org/elasticsearch/common/lucene/search/XBooleanFilter.java
@@ -82,6 +82,11 @@ public DocIdSet getDocIdSet(IndexReader reader) throws IOException {
82
}
83
84
85
+ // if no should clauses match, return null (act as min_should_match set to 1)
86
+ if (res == null) {
87
+ return null;
88
+ }
89
+
90
if (notFilters != null) {
91
for (int i = 0; i < notFilters.size(); i++) {
92
if (res == null) {
0 commit comments