Class LargeNumHitsTopDocsCollectorManager

java.lang.Object
org.apache.lucene.sandbox.search.LargeNumHitsTopDocsCollectorManager
All Implemented Interfaces:
CollectorManager<LargeNumHitsTopDocsCollector,TopDocs>

public class LargeNumHitsTopDocsCollectorManager extends Object implements CollectorManager<LargeNumHitsTopDocsCollector,TopDocs>
CollectorManager for LargeNumHitsTopDocsCollector that enables concurrent collection of top docs across multiple segments.

Example usage:

 IndexSearcher searcher = ...; // your IndexSearcher
 TopDocs topDocs = searcher.search(new MatchAllDocsQuery(),
     new LargeNumHitsTopDocsCollectorManager(100_000));
 System.out.println("Total hits: " + topDocs.totalHits.value());