Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
9.0, 8.9
-
None
-
New
Description
romseygeek and I looked into a test failure that occurs in Elasticsearch with Lucene 9. The first documents of subsequent segments are mistakenly skipped when sort optimization is enabled. We should initialize `maxDocVisited` in NumericComparator to -1 instead of 0.