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 TypeClassDescriptionclass
ATopDocsCollector
that controls diversity in results by ensuring no more than maxHitsPerKey results from a common source are collected in the final results.class
ACollector
which computes statistics for a DocValues field.class
Bitset 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 class
A Collector that decodes the stored query for each document hit reparsing them everytime.(package private) static final class
A 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 class
Optimized collector for large number of hits.class
This class wraps a Collector and times the execution of: - setScorer() - collect() - doSetNextReader() - needsScores()(package private) class
A collector that profiles how much time is spent calling it.Methods in org.apache.lucene.sandbox.search with parameters of type CollectorModifier and TypeMethodDescriptionprotected String
ProfilerCollector.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 TypeInterfaceDescriptioninterface
CollectorManager<C extends Collector,
T> A manager of collectors.Classes in org.apache.lucene.search that implement CollectorModifier and TypeClassDescriptionclass
Caches all docs, and optionally also scores, coming from a search, and is then able to replay them to another collector.private static class
private static class
class
Collector
delegator.private static class
private static class
class
class
class
BaseCollector
implementation that is used to collect all contexts.class
TheTimeLimitingCollector
is used to timeout search requests that take longer than the maximum allowed search time limit.class
TopDocsCollector<T extends ScoreDoc>
A base class for all collectors that return aTopDocs
output.class
private static final class
private static class
class
private static class
private static class
class
Just counts the total number of hits.Fields in org.apache.lucene.search declared as CollectorModifier and TypeFieldDescriptionprivate Collector
TimeLimitingCollector.collector
private final Collector[]
MultiCollector.collectors
protected final Collector
FilterCollector.in
Methods 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 wrappedCollector
s for advanced use-casesMultiCollectorManager.newCollector()
static Collector
Wraps a list ofCollector
s with aMultiCollector
.static Collector
Methods in org.apache.lucene.search with parameters of type CollectorModifier and TypeMethodDescriptionstatic CachingCollector
Create a newCachingCollector
that wraps the given collector and caches documents and scores up to the specified RAM threshold.static CachingCollector
Create a newCachingCollector
that wraps the given collector and caches documents and scores up to the specified max docs threshold.void
abstract void
Replays the cached doc IDs (and scores) to the given Collector.protected void
IndexSearcher.search
(List<LeafReaderContext> leaves, Weight weight, Collector collector) Lower-level search API.void
Lower-level search API.void
TimeLimitingCollector.setCollector
(Collector collector) This is so the same timer can be used with a multi-phase search process such as grouping.static Collector
Method parameters in org.apache.lucene.search with type arguments of type CollectorModifier and TypeMethodDescriptionObject[]
MultiCollectorManager.reduce
(Collection<Collector> reducableCollectors) static Collector
Wraps a list ofCollector
s with aMultiCollector
.Constructors in org.apache.lucene.search with parameters of type CollectorModifierConstructorDescriptionprivate
Sole constructor.private
MultiCollector
(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 anotherCollector
with 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 TypeClassDescriptionclass
GroupReducer<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 class
GroupReducer.GroupCollector<C extends Collector>
Classes in org.apache.lucene.search.grouping that implement CollectorModifier and TypeClassDescriptionclass
This collector specializes in collecting the most relevant document (group head) for each group that matches the query.private static class
Specialized implementation for sorting by scoreprivate static class
General implementation using aFieldComparator
to select the group headclass
A collector that collects all groups that match the query.class
BlockGroupingCollector 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.class
A second pass grouping collector that keeps track of distinct values for a specified field for the top N group.private static class
class
FirstPassGroupingCollector is the first of two passes necessary to collect grouped hits.class
Base class for computing grouped facets.class
SecondPassGroupingCollector runs over an already collected set of groups, further applying aGroupReducer
to each groupclass
An implementation ofGroupFacetCollector
that computes grouped facets based on the indexed terms from DocValues.(package private) static class
(package private) static class
class
A second-pass collector that collects the TopDocs for each group, and returns them as aTopGroups
objectprivate static class
private static class
Fields 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 class
A 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) class
TermsCollector<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 TypeClassDescriptionclass
Collector
that collects completion and score, along with document id