Uses of Class
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
Subclasses of Collector in org.apache.lucene.search 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.classMultiCollectorclassPositiveScoresOnlyCollectorclassTimeLimitingCollectorTheTimeLimitingCollectoris used to timeout search requests that take longer than the maximum allowed search time limit.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 CollectorCachingCollector. otherMethods in org.apache.lucene.search that return Collector Modifier and Type Method Description static CollectorMultiCollector. wrap(Collector... collectors)Wraps a list ofCollectors with aMultiCollector.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.voidConstantScoreQuery.ConstantScorer. score(Collector collector)booleanConstantScoreQuery.ConstantScorer. score(Collector collector, int max, int firstDocID)voidScoreCachingWrappingScorer. score(Collector collector)booleanScoreCachingWrappingScorer. score(Collector collector, int max, int firstDocID)voidScorer. score(Collector collector)Scores and collects all matching documents.booleanScorer. score(Collector collector, int max, int firstDocID)Expert: Collects matching documents in a range.protected voidIndexSearcher. search(List<AtomicReaderContext> leaves, Weight weight, Collector collector)Lower-level search API.voidIndexSearcher. search(Query query, Collector results)Lower-level search API.voidIndexSearcher. search(Query query, Filter filter, Collector results)Lower-level search API.voidTimeLimitingCollector. setCollector(Collector collector)This is so the same timer can be used with a multi-phase search process such as grouping.static CollectorMultiCollector. wrap(Collector... collectors)Wraps a list ofCollectors with aMultiCollector.Constructors in org.apache.lucene.search with parameters of type Collector Constructor Description PositiveScoresOnlyCollector(Collector c)TimeLimitingCollector(Collector collector, Counter clock, long ticksAllowed)Create a TimeLimitedCollector wrapper over anotherCollectorwith a specified timeout.
-