TopScoreDocCollectorManager
Create a TopScoreDocCollectorManager which uses a shared hit counter to maintain number of hits and a shared MaxScoreAccumulator to propagate the minimum score across segments
Note that a new collectorManager should be created for each search due to its internal states.
Constructors
Creates a new TopScoreDocCollectorManager given the number of hits to collect and the number of hits to count accurately.
Creates a new TopScoreDocCollectorManager given the number of hits to collect and the number of hits to count accurately, with thread-safe internal states.
Functions
Return a new Collector. This must return a different instance on each call.
Reduce the results of individual collectors into a meaningful result. For instance a [ ] would compute the top docs of each collector and then merge them using TopDocs.merge. This method must be called after collection is finished on all provided collectors.