Skip to content

Commit e122a04

Browse files
committed
fixing iteration
1 parent 1f05dd6 commit e122a04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/index/codec/vectors/DefaultIVFVectorsReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ public int visit(KnnCollector knnCollector) throws IOException {
550550
}
551551
int count = 0;
552552
for (; i < vectors; i++) {
553-
int doc = docIdsScratch[count];
553+
int doc = docIdsScratch[count++];
554554
if (acceptDocs == null || acceptDocs.get(doc)) {
555555
quantizeQueryIfNecessary();
556556
float qcDist = osqVectorsScorer.quantizeScore(quantizedQueryScratch);

0 commit comments

Comments
 (0)