mirror of https://github.com/apache/lucene.git
LUCENE-10608: Ignore conjunctions that have a non-zero minShouldMatch from the count logic.
This commit is contained in:
parent
7bbc1bf28d
commit
d52122605d
|
@ -362,6 +362,9 @@ final class BooleanWeight extends Weight {
|
|||
return super.count(context);
|
||||
}
|
||||
}
|
||||
if (query.getMinimumNumberShouldMatch() > 0) {
|
||||
return super.count(context);
|
||||
}
|
||||
// From now on we know the query is a pure conjunction
|
||||
final int numDocs = context.reader().numDocs();
|
||||
int conjunctionCount = numDocs;
|
||||
|
|
Loading…
Reference in New Issue