Uses of Interface
org.apache.lucene.search.Collector
-
Packages that use Collector Package Description org.apache.lucene.search Code to search indices. -
-
Uses of Collector in org.apache.lucene.search
Classes in org.apache.lucene.search with type parameters of type Collector Modifier and Type Interface Description interfaceCollectorManager<C extends Collector,T>A manager of collectors.Classes in org.apache.lucene.search that implement Collector Modifier and Type Class Description classCachingCollectorCaches all docs, and optionally also scores, coming from a search, and is then able to replay them to another collector.classFilterCollectorCollectordelegator.classMultiCollectorclassPositiveScoresOnlyCollectorclassSimpleCollectorBaseCollectorimplementation that is used to collect all contexts.classTimeLimitingCollectorDeprecated.UseIndexSearcher.setTimeout(QueryTimeout)to time out queries.classTopDocsCollector<T extends ScoreDoc>A base class for all collectors that return aTopDocsoutput.classTopFieldCollectorclassTopScoreDocCollectorclassTotalHitCountCollectorJust counts the total number of hits.Fields in org.apache.lucene.search declared as Collector Modifier and Type Field Description protected CollectorFilterCollector. inMethods in org.apache.lucene.search with type parameters of type Collector Modifier and Type Method Description <C extends Collector,T>
TIndexSearcher. search(Query query, CollectorManager<C,T> collectorManager)Lower-level search API.Methods in org.apache.lucene.search that return Collector Modifier and Type Method Description Collector[]MultiCollector. getCollectors()Provides access to the wrappedCollectors for advanced use-casesCollectorMultiCollectorManager. newCollector()static CollectorMultiCollector. wrap(Iterable<? extends Collector> collectors)Wraps a list ofCollectors with aMultiCollector.static CollectorMultiCollector. wrap(Collector... collectors)Methods in org.apache.lucene.search with parameters of type Collector Modifier and Type Method Description static CachingCollectorCachingCollector. create(Collector other, boolean cacheScores, double maxRAMMB)Create a newCachingCollectorthat wraps the given collector and caches documents and scores up to the specified RAM threshold.static CachingCollectorCachingCollector. create(Collector other, boolean cacheScores, int maxDocsToCache)Create a newCachingCollectorthat wraps the given collector and caches documents and scores up to the specified max docs threshold.abstract voidCachingCollector. replay(Collector other)Replays the cached doc IDs (and scores) to the given Collector.protected voidIndexSearcher. search(List<LeafReaderContext> leaves, Weight weight, Collector collector)Lower-level search API.voidIndexSearcher. search(Query query, Collector results)Deprecated.This method is being deprecated in favor ofIndexSearcher.search(Query, CollectorManager)due to its support for concurrency in IndexSearcherprotected voidIndexSearcher. searchLeaf(LeafReaderContext ctx, Weight weight, Collector collector)Lower-level search APIvoidTimeLimitingCollector. setCollector(Collector collector)Deprecated.This is so the same timer can be used with a multi-phase search process such as grouping.static CollectorMultiCollector. wrap(Collector... collectors)Method parameters in org.apache.lucene.search with type arguments of type Collector Modifier and Type Method Description Object[]MultiCollectorManager. reduce(Collection<Collector> reducableCollectors)static CollectorMultiCollector. wrap(Iterable<? extends Collector> collectors)Wraps a list ofCollectors with aMultiCollector.Constructors in org.apache.lucene.search with parameters of type Collector Constructor Description FilterCollector(Collector in)Sole constructor.PositiveScoresOnlyCollector(Collector in)TimeLimitingCollector(Collector collector, Counter clock, long ticksAllowed)Deprecated.Create a TimeLimitedCollector wrapper over anotherCollectorwith a specified timeout.
-