Nhat Nguyen created LUCENE-10106:
------------------------------------
Summary: Sort optimization mistakenly skips the first
documentshttps://github.com/elastic/elasticsearch/pull/73324
Key: LUCENE-10106
URL: https://issues.apache.org/jira/browse/LUCENE-10106
Project: Lucene - Core
Issue Type: Bug
Components: core/search
Affects Versions: 8.9, main (9.0)
Reporter: Nhat Nguyen
Assignee: Nhat Nguyen
[~romseygeek] and I looked into a test
[failure|https://github.com/elastic/elasticsearch/pull/73324] 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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]