mrkm4ntr opened a new pull request, #16133:
URL: https://github.com/apache/lucene/pull/16133
### Description
`FilterLeafCollector` delegates `setScorer()`, `collect()`, and `finish()`
to the wrapped `LeafCollector`, but does not delegate `competitiveIterator()`.
This causes the default implementation from the `LeafCollector` interface
(`return null`) to be used, which disables dynamic pruning for all
`FilterLeafCollector` subclasses.
One notable case is `ProfilerCollectorWrapper` in the sandbox module. When
profiling is enabled, sorted queries on numeric/date fields lose the
competitive iterator provided by `TopFieldCollector`, falling back to a full
scan of all matching documents.
<!--
If this is your first contribution to Lucene, please make sure you have
reviewed the contribution guide.
https://github.com/apache/lucene/blob/main/CONTRIBUTING.md
-->
--
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]