Skip to content

Commit c5e8661

Browse files
committed
fixing filtered search
1 parent e32ab82 commit c5e8661

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public int resetPostingsScorer(long offset) throws IOException {
240240
return vectors;
241241
}
242242

243-
private void scoreIndividually(int offset, int[] docIds) throws IOException {
243+
private void scoreIndividually(int offset, long slicePos, int[] docIds) throws IOException {
244244
// score individually, first the quantized byte chunk
245245
for (int j = 0; j < BULK_SIZE; j++) {
246246
int doc = docIds[j + offset];
@@ -309,7 +309,7 @@ private int scoreDocs(KnnCollector knnCollector, int count, long sliceOffset, in
309309
quantizeQueryIfNecessary();
310310
indexInput.seek(slicePos + i * quantizedByteLength);
311311
if (docsToScore < BULK_SIZE / 2) {
312-
scoreIndividually(i, docIds);
312+
scoreIndividually(i, slicePos, docIds);
313313
} else {
314314
osqVectorsScorer.scoreBulk(
315315
quantizedQueryScratch,

0 commit comments

Comments
 (0)