We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1249286 commit cb9a7f5Copy full SHA for cb9a7f5
server/src/main/java/org/elasticsearch/index/fielddata/fieldcomparator/LongValuesComparatorSource.java
@@ -228,7 +228,7 @@ public int nextDoc() throws IOException {
228
229
@Override
230
public int advance(int target) throws IOException {
231
- if (target > maxDoc) {
+ if (target >= maxDoc) {
232
return doc = NO_MORE_DOCS;
233
}
234
// All documents are guaranteed to have a value, as all invocations of getLongValues
0 commit comments