File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
server/src/main/java/org/elasticsearch/index/codec/vectors Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -327,7 +327,6 @@ private static class MemorySegmentPostingsVisitor implements PostingVisitor {
327327 final float [] centroid ;
328328 long slicePos ;
329329 OptimizedScalarQuantizer .QuantizationResult queryCorrections ;
330- DocIdsWriter docIdsWriter = new DocIdsWriter ();
331330
332331 final float [] scratch ;
333332 final int [] quantizationScratch ;
@@ -373,7 +372,7 @@ public int resetPostingsScorer(long offset) throws IOException {
373372 GroupVIntUtil .readGroupVInts (indexInput , docIdsScratch , vectors );
374373 // reconstitute from the deltas
375374 int sum = 0 ;
376- for (int i = 1 ; i < vectors ; i ++) {
375+ for (int i = 0 ; i < vectors ; i ++) {
377376 sum += docIdsScratch [i ];
378377 docIdsScratch [i ] = sum ;
379378 }
You can’t perform that action at this time.
0 commit comments