Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
New
Description
LUCENE-9280 introduced an ability for comparators to skip non-competitive documents. But currently comparators are not aware of index sorting, and can run sort optimization even when search sort is congruent with the index sort.
As the early termination in this case is already handled in TopFieldCollector, we need to disable sort optimization in comparators.