Uses of Interface
org.apache.lucene.search.Collector
Packages that use Collector
Package
Description
Monitoring framework
Code to search indices.
Grouping.
Support for index-time and query-time joins.
Support for document suggestion
-
Uses of Collector in org.apache.lucene.monitor
Classes in org.apache.lucene.monitor that implement CollectorModifier and TypeClassDescriptionprivate class(package private) static final classA Collector that decodes the stored query for each document hit. -
Uses of Collector in org.apache.lucene.search
Classes in org.apache.lucene.search with type parameters of type CollectorModifier and TypeInterfaceDescriptioninterfaceCollectorManager<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.private static classprivate static classclassATopDocsCollectorthat controls diversity in results by ensuring no more than maxHitsPerKey results from a common source are collected in the final results.classACollectorwhich computes statistics for a DocValues field.classCollectordelegator.final classOptimized collector for large number of hits.classBitset collector which supports memory trackingclassclassclassclassBaseCollectorimplementation that is used to collect all contexts.classTheTimeLimitingCollectoris 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.classprivate static final classprivate static classclassprivate static classprivate static classclassJust counts the total number of hits.Fields in org.apache.lucene.search declared as CollectorModifier and TypeFieldDescriptionprivate CollectorTimeLimitingCollector.collectorprivate final Collector[]MultiCollector.collectorsprivate final Collector[]MultiCollectorManager.Collectors.collectorsprotected final CollectorFilterCollector.inMethods in org.apache.lucene.search with type parameters of type CollectorModifier and TypeMethodDescription<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 TypeMethodDescriptionstatic 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.voidabstract voidReplays the cached doc IDs (and scores) to the given Collector.protected voidIndexSearcher.search(List<LeafReaderContext> leaves, Weight weight, Collector collector) Lower-level search API.voidLower-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 CollectorMethod parameters in org.apache.lucene.search with type arguments of type CollectorModifier and TypeMethodDescriptionstatic CollectorWraps a list ofCollectors with aMultiCollector.Constructors in org.apache.lucene.search with parameters of type CollectorModifierConstructorDescriptionprivateSole constructor.privateMultiCollector(Collector... collectors) (package private)NoScoreCachingCollector(Collector in, int maxDocsToCache) (package private)ScoreCachingCollector(Collector in, int maxDocsToCache) TimeLimitingCollector(Collector collector, Counter clock, long ticksAllowed) Create a TimeLimitedCollector wrapper over anotherCollectorwith a specified timeout. -
Uses of Collector in org.apache.lucene.search.grouping
Classes in org.apache.lucene.search.grouping with type parameters of type CollectorModifier and TypeClassDescriptionclassGroupReducer<T,C extends Collector> Concrete implementations of this class define what to collect for individual groups during the second-pass of a grouping search.private static final classGroupReducer.GroupCollector<C extends Collector>Classes in org.apache.lucene.search.grouping that implement CollectorModifier and TypeClassDescriptionclassThis collector specializes in collecting the most relevant document (group head) for each group that matches the query.private static classSpecialized implementation for sorting by scoreprivate static classGeneral implementation using aFieldComparatorto select the group headclassA collector that collects all groups that match the query.classBlockGroupingCollector performs grouping with a single pass collector, as long as you are grouping by a doc block field, ie all documents sharing a given group value were indexed as a doc block using the atomicIndexWriter.addDocuments()orIndexWriter.updateDocuments()API.classA second pass grouping collector that keeps track of distinct values for a specified field for the top N group.private static classclassFirstPassGroupingCollector is the first of two passes necessary to collect grouped hits.classBase class for computing grouped facets.classSecondPassGroupingCollector runs over an already collected set of groups, further applying aGroupReducerto each groupclassAn implementation ofGroupFacetCollectorthat computes grouped facets based on the indexed terms from DocValues.(package private) static class(package private) static classclassA second-pass collector that collects the TopDocs for each group, and returns them as aTopGroupsobjectprivate static classprivate static classFields in org.apache.lucene.search.grouping declared as Collector -
Uses of Collector in org.apache.lucene.search.join
Subinterfaces of Collector in org.apache.lucene.search.joinClasses in org.apache.lucene.search.join that implement CollectorModifier and TypeClassDescription(package private) class(package private) final classA collector that collects all ordinals from a specified field matching the query.(package private) class(package private) static final class(package private) static final class(package private) static final class(package private) static final class(package private) static final class(package private) classTermsCollector<DV>A collector that collects all terms from a specified field matching the query.(package private) static class(package private) static class(package private) class(package private) static class(package private) static class(package private) static class(package private) static class -
Uses of Collector in org.apache.lucene.search.suggest.document
Classes in org.apache.lucene.search.suggest.document that implement CollectorModifier and TypeClassDescriptionclassCollectorthat collects completion and score, along with document id