lucene
lucene copied to clipboard
Update QueryUtils to use CollectorManager
Description
Relates to https://github.com/apache/lucene/issues/12892
We introduce a new SimpleCollectorWithLastReader
class to help keep context of LastReader per thread. This way calling CollectorManager#reduce
can work with an executor.
The diff makes it look big, but in reality we just wrap SimpleCollector inside a CollectorManager.