romseygeek commented on code in PR #15436:
URL: https://github.com/apache/lucene/pull/15436#discussion_r2550275461
##########
lucene/core/src/java/org/apache/lucene/search/TopFieldCollector.java:
##########
@@ -217,6 +217,11 @@ public void collect(int doc) throws IOException {
return collector;
}
+
+ @Override
+ public Comparator<LeafReaderContext> getLeafReaderComparator() {
Review Comment:
The case where there's a configured leaf sorter is tricky, as it might be
optimal or it might be entirely adverse depending on whether the query sort is
reversed or not. You could override here and turn off query-time segment
sorting if you wanted. But maybe we need a better escape hatch?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]