Skip to content

Commit 62215c4

Browse files
committed
don't forget to set the current doc to exhausted too
1 parent 0fb7e45 commit 62215c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/search/vectors/DiversifyingParentBlockQuery.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public int nextDoc() throws IOException {
133133
@Override
134134
public int advance(int target) throws IOException {
135135
if (exhausted) {
136-
return NO_MORE_DOCS;
136+
return currentDoc = NO_MORE_DOCS;
137137
}
138138
if (currentDoc == -1 || innerIterator.docID() < target) {
139139
if (innerIterator.advance(target) == NO_MORE_DOCS) {

0 commit comments

Comments
 (0)