Skip to content

Commit f063435

Browse files
mccullochtbenwtrent
authored andcommitted
fix off by one (#15183)
1 parent 0469169 commit f063435

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lucene/core/src/java21/org/apache/lucene/internal/vectorization/Lucene99MemorySegmentFloatVectorScorer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public float bulkScore(int[] nodes, float[] scores, int numNodes) throws IOExcep
115115
}
116116
if (remaining > 2) {
117117
scores[i + 2] = normalizeRawScore(scratchScores[2]);
118-
maxScore = Math.max(maxScore, scores[i + 1]);
118+
maxScore = Math.max(maxScore, scores[i + 2]);
119119
}
120120
}
121121
return maxScore;

0 commit comments

Comments
 (0)