File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
server/src/main/java/org/elasticsearch/index/mapper/vectors Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 1414import org .apache .lucene .index .LeafReader ;
1515import org .apache .lucene .index .LeafReaderContext ;
1616import org .apache .lucene .index .VectorSimilarityFunction ;
17- import org .apache .lucene .search .DocIdSetIterator ;
1817import org .apache .lucene .search .DoubleValues ;
1918import org .apache .lucene .search .DoubleValuesSource ;
2019import org .apache .lucene .search .IndexSearcher ;
@@ -56,8 +55,7 @@ public double doubleValue() throws IOException {
5655
5756 @ Override
5857 public boolean advanceExact (int doc ) throws IOException {
59- docId = doc ;
60- return iterator .advance (docId ) != DocIdSetIterator .NO_MORE_DOCS ;
58+ return iterator .advance (doc ) == doc ;
6159 }
6260 };
6361 }
You can’t perform that action at this time.
0 commit comments