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