TopFieldCollectorManager
Create a TopFieldCollectorManager which uses a shared hit counter to maintain number of hits and a shared MaxScoreAccumulator to propagate the minimum score across segments if the primary sort is by relevancy.
Note that a new collectorManager should be created for each search due to its internal states.
Constructors
Creates a new TopFieldCollectorManager from the given arguments.
Creates a new TopFieldCollectorManager from the given arguments, 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.