File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
server/src/main/java/org/elasticsearch/search/internal Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 1010package org .elasticsearch .search .internal ;
1111
1212import org .apache .lucene .codecs .StoredFieldsReader ;
13+ import org .apache .lucene .codecs .lucene90 .IndexedDISI ;
1314import org .apache .lucene .index .ByteVectorValues ;
1415import org .apache .lucene .index .DirectoryReader ;
1516import org .apache .lucene .index .FilterDirectoryReader ;
@@ -669,6 +670,8 @@ public FloatVectorValues copy() throws IOException {
669670 static DocIdSetIterator exitableIterator (DocIdSetIterator iterator , QueryCancellation queryCancellation ) {
670671 if (iterator instanceof KnnVectorValues .DocIndexIterator docIndexIterator ) {
671672 return createExitableIterator (docIndexIterator , queryCancellation );
673+ } else if (iterator instanceof IndexedDISI indexedDISI ) {
674+ return createExitableIterator (IndexedDISI .asDocIndexIterator (indexedDISI ), queryCancellation );
672675 } else {
673676 return new ExitableDocSetIterator (iterator , queryCancellation );
674677 }
You can’t perform that action at this time.
0 commit comments