Uses of Interface
org.apache.lucene.search.Collector
Packages that use Collector
Package
Description
Misc search implementations.
Monitoring framework
This package contains a flexible graph-based proximity query, TermAutomatonQuery, and geospatial
queries.
Code to search indices.
Grouping.
Support for index-time and query-time joins.
Support for document suggestion
-
Uses of Collector in org.apache.lucene.misc.search
Classes in org.apache.lucene.misc.search that implement CollectorModifier and TypeClassDescriptionclassATopDocsCollectorthat 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.classBitset collector which supports memory tracking -
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 reparsing them everytime.(package private) static final classA Collector that decodes the stored query for each document hit. -
Uses of Collector in org.apache.lucene.sandbox.search
Classes in org.apache.lucene.sandbox.search that implement CollectorModifier and TypeClassDescriptionfinal classOptimized collector for large number of hits.classThis class wraps a Collector and times the execution of: - setScorer() - collect() - doSetNextReader() - needsScores()(package private) classA collector that profiles how much time is spent calling it.Methods in org.apache.lucene.sandbox.search with parameters of type CollectorModifier and TypeMethodDescriptionprotected StringProfilerCollector.deriveCollectorName(Collector c) Creates a human-friendly representation of the Collector name.Constructors in org.apache.lucene.sandbox.search with parameters of type CollectorModifierConstructorDescriptionProfilerCollector(Collector collector, String reason, List<ProfilerCollector> children) (package private)Sole constructor. -
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 classclassCollectordelegator.classclassclassBaseCollectorimplementation that is used to collect all contexts.classDeprecated.classTopDocsCollector<T extends ScoreDoc>A base class for all collectors that return aTopDocsoutput.class(package private) static final class(package private) static classclass(package private) static class(package private) static classclassJust counts the total number of hits.Fields in org.apache.lucene.search declared as CollectorModifier and TypeFieldDescriptionprivate CollectorTimeLimitingCollector.collectorDeprecated.private final Collector[]MultiCollector.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.private <C extends Collector,T>
TIndexSearcher.search(Weight weight, CollectorManager<C, T> collectorManager, C firstCollector) 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.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.voidDeprecated.This method is being deprecated in favor ofIndexSearcher.search(Query, CollectorManager)due to its support for concurrency in IndexSearchervoidTimeLimitingCollector.setCollector(Collector collector) Deprecated.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 TypeMethodDescriptionObject[]MultiCollectorManager.reduce(Collection<Collector> reducableCollectors) static 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) Deprecated.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
IndexSearcher.setTimeout(QueryTimeout)to time out queries.