Class TotalHitCountCollectorManager

java.lang.Object
org.apache.lucene.search.TotalHitCountCollectorManager
All Implemented Interfaces:
CollectorManager<TotalHitCountCollector,Integer>

public class TotalHitCountCollectorManager extends Object implements CollectorManager<TotalHitCountCollector,Integer>
Collector manager based on TotalHitCountCollector that allows users to parallelize counting the number of hits, expected to be used mostly wrapped in MultiCollectorManager. For cases when this is the only collector manager used, IndexSearcher.count(Query) should be called instead of IndexSearcher.search(Query, CollectorManager) as the former is faster whenever the count can be returned directly from the index statistics.