mirror of https://github.com/apache/lucene.git
LUCENE-9958: Fixed performance regression for boolean queries that configure a minimum number of matching clauses.
This commit is contained in:
parent
8e94a591d8
commit
2c04ab5835
|
@ -383,6 +383,9 @@ Bug Fixes
|
|||
* LUCENE-9887: Fixed parameter use in RadixSelector.
|
||||
(liupanfeng via Adrien Grand)
|
||||
|
||||
* LUCENE-9958: Fixed performance regression for boolean queries that configure a
|
||||
minimum number of matching clauses. (Adrien Grand, Matt Weber)
|
||||
|
||||
Other
|
||||
---------------------
|
||||
|
||||
|
|
|
@ -548,7 +548,7 @@ final class WANDScorer extends Scorer {
|
|||
|
||||
/** Insert an entry in 'tail' and evict the least-costly scorer if full. */
|
||||
private DisiWrapper insertTailWithOverFlow(DisiWrapper s) {
|
||||
if (tailMaxScore + s.maxScore < minCompetitiveScore) {
|
||||
if (tailMaxScore + s.maxScore < minCompetitiveScore || tailSize + 1 < minShouldMatch) {
|
||||
// we have free room for this new entry
|
||||
addTail(s);
|
||||
tailMaxScore += s.maxScore;
|
||||
|
|
Loading…
Reference in New Issue