Skip to content

Commit 0f4e15a

Browse files
authored
fix off by one (#15183)
1 parent 126ba8e commit 0f4e15a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

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

0 commit comments

Comments
 (0)