mirror of https://github.com/apache/lucene.git
Update lucene/core/src/java/org/apache/lucene/search/TopFieldCollector.java
replace modulo with a btiwise and (bis) Co-Authored-By: Adrien Grand <jpountz@gmail.com>
This commit is contained in:
parent
7b0c096b91
commit
50ae67bf1e
|
@ -238,7 +238,7 @@ public abstract class TopFieldCollector extends TopDocsCollector<Entry> {
|
|||
totalHits++;
|
||||
hitsThresholdChecker.incrementHitCount();
|
||||
|
||||
if (minScoreAcc != null && totalHits % minScoreAcc.modInterval == 0) {
|
||||
if (minScoreAcc != null && (totalHits & minScoreAcc.modInterval) == 0) {
|
||||
updateGlobalMinCompetitiveScore(scorer);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue