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 class
CachingCollector
Caches all docs, and optionally also scores, coming from a search, and is then able to replay them to another collector.class
MultiCollector
class
PositiveScoresOnlyCollector
class
TimeLimitingCollector
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
TopFieldCollector
class
TopScoreDocCollector
class
TotalHitCountCollector
Just counts the total number of hits.Fields in org.apache.lucene.search declared as Collector Modifier and Type Field Description protected Collector
CachingCollector. other
Methods in org.apache.lucene.search that return Collector Modifier and Type Method Description static Collector
MultiCollector. wrap(Collector... collectors)
Wraps a list ofCollector
s with aMultiCollector
.Methods in org.apache.lucene.search with parameters of type Collector Modifier and Type Method Description static CachingCollector
CachingCollector. create(Collector other, boolean cacheScores, double maxRAMMB)
Create a newCachingCollector
that wraps the given collector and caches documents and scores up to the specified RAM threshold.static CachingCollector
CachingCollector. create(Collector other, boolean cacheScores, int maxDocsToCache)
Create a newCachingCollector
that wraps the given collector and caches documents and scores up to the specified max docs threshold.abstract void
CachingCollector. replay(Collector other)
Replays the cached doc IDs (and scores) to the given Collector.void
ConstantScoreQuery.ConstantScorer. score(Collector collector)
boolean
ConstantScoreQuery.ConstantScorer. score(Collector collector, int max, int firstDocID)
void
ScoreCachingWrappingScorer. score(Collector collector)
boolean
ScoreCachingWrappingScorer. score(Collector collector, int max, int firstDocID)
void
Scorer. score(Collector collector)
Scores and collects all matching documents.boolean
Scorer. score(Collector collector, int max, int firstDocID)
Expert: Collects matching documents in a range.protected void
IndexSearcher. search(List<AtomicReaderContext> leaves, Weight weight, Collector collector)
Lower-level search API.void
IndexSearcher. search(Query query, Collector results)
Lower-level search API.void
IndexSearcher. search(Query query, Filter filter, Collector results)
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
MultiCollector. wrap(Collector... collectors)
Wraps a list ofCollector
s 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 anotherCollector
with a specified timeout.
-