Uses of Interface
org.apache.lucene.search.Collector
Packages that use Collector
-
Uses of Collector in org.apache.lucene.search
Classes in org.apache.lucene.search with type parameters of type CollectorModifier and TypeClassDescriptionclassCachingCollectorManager<C extends Collector,R> ACollectorManagerthat wraps a delegateCollectorManagerand caches all collected documents (and optionally scores) per slice, so they can be replayed to a second-passCollectorManagerwithout re-running the query.interfaceCollectorManager<C extends Collector,T> A manager of collectors.Classes in org.apache.lucene.search that implement CollectorModifier and TypeClassDescriptionclassCaches all docs, and optionally also scores, coming from a search, and is then able to replay them to another collector.classCollectordelegator.classclassclassBaseCollectorimplementation that is used to collect all contexts.classTopDocsCollector<T extends ScoreDoc>A base class for all collectors that return aTopDocsoutput.classclassclassJust counts the total number of hits.Fields in org.apache.lucene.search declared as CollectorMethods in org.apache.lucene.search with type parameters of type CollectorModifier and TypeMethodDescription<C2 extends Collector,R2>
R2CachingCollectorManager.replay(CollectorManager<C2, R2> secondPassManager) Replays each per-slice cache into a fresh second-pass collector, then reduces all results.<C extends Collector,T>
TIndexSearcher.search(Query query, CollectorManager<C, T> collectorManager) Lower-level search API.Methods in org.apache.lucene.search that return CollectorModifier and TypeMethodDescriptionMultiCollector.getCollectors()Provides access to the wrappedCollectors for advanced use-casesMultiCollectorManager.newCollector()static CollectorWraps a list ofCollectors with aMultiCollector.static CollectorMethods in org.apache.lucene.search with parameters of type CollectorModifier and TypeMethodDescriptionstatic CachingCollectorCreate a newCachingCollectorthat wraps the given collector and caches documents and scores up to the specified RAM threshold.static CachingCollectorCreate a newCachingCollectorthat wraps the given collector and caches documents and scores up to the specified max docs threshold.abstract voidReplays the cached doc IDs (and scores) to the given Collector.protected voidIndexSearcher.search(IndexSearcher.LeafReaderContextPartition[] partitions, Weight weight, Collector collector) Lower-level search API.voidDeprecated.protected voidIndexSearcher.searchLeaf(LeafReaderContext ctx, int minDocId, int maxDocId, Weight weight, Collector collector) Lower-level search APIstatic CollectorMethod parameters in org.apache.lucene.search with type arguments of type CollectorModifier and TypeMethodDescriptionObject[]MultiCollectorManager.reduce(Collection<Collector> reducableCollectors) static CollectorWraps a list ofCollectors with aMultiCollector.Constructors in org.apache.lucene.search with parameters of type CollectorModifierConstructorDescriptionSole constructor.
IndexSearcher.search(Query, CollectorManager)due to its support for concurrency in IndexSearcher