Uses of Class
org.apache.lucene.search.Collector
Packages that use Collector
-
Uses of Collector in org.apache.lucene.search
Subclasses of Collector in org.apache.lucene.searchModifier and TypeClassDescriptionclass
Caches all docs, and optionally also scores, coming from a search, and is then able to replay them to another collector.class
class
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
class
class
Just counts the total number of hits.Fields in org.apache.lucene.search declared as CollectorMethods in org.apache.lucene.search that return CollectorModifier and TypeMethodDescriptionstatic Collector
Wraps a list ofCollector
s with aMultiCollector
.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.abstract void
Replays the cached doc IDs (and scores) to the given Collector.void
boolean
void
boolean
void
Scores and collects all matching documents.boolean
Expert: Collects matching documents in a range.protected void
IndexSearcher.search
(List<AtomicReaderContext> leaves, Weight weight, Collector collector) Lower-level search API.void
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
Wraps a list ofCollector
s with aMultiCollector
.Constructors in org.apache.lucene.search with parameters of type CollectorModifierConstructorDescriptionTimeLimitingCollector
(Collector collector, Counter clock, long ticksAllowed) Create a TimeLimitedCollector wrapper over anotherCollector
with a specified timeout.