Package | Description |
---|---|
org.apache.lucene.search |
Code to search indices.
|
Modifier and Type | Interface and Description |
---|---|
interface |
CollectorManager<C extends Collector,T>
A manager of collectors.
|
Modifier and Type | Class and 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 |
FilterCollector
Collector delegator. |
class |
MultiCollector
|
class |
MultiCollectorManager.Collectors |
class |
PositiveScoresOnlyCollector
|
class |
SimpleCollector
Base
Collector implementation that is used to collect all contexts. |
class |
TimeLimitingCollector
The
TimeLimitingCollector 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 a
TopDocs output. |
class |
TopFieldCollector
|
class |
TopScoreDocCollector
|
class |
TotalHitCountCollector
Just counts the total number of hits.
|
Modifier and Type | Field and Description |
---|---|
protected Collector |
FilterCollector.in |
Modifier and Type | Method and Description |
---|---|
<C extends Collector,T> |
IndexSearcher.search(Query query,
CollectorManager<C,T> collectorManager)
Lower-level search API.
|
Modifier and Type | Method and Description |
---|---|
static Collector |
MultiCollector.wrap(Collector... collectors)
|
static Collector |
MultiCollector.wrap(Iterable<? extends Collector> collectors)
Wraps a list of
Collector s with a MultiCollector . |
Modifier and Type | Method and Description |
---|---|
static CachingCollector |
CachingCollector.create(Collector other,
boolean cacheScores,
double maxRAMMB)
Create a new
CachingCollector 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 new
CachingCollector 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.
|
protected void |
IndexSearcher.search(List<LeafReaderContext> leaves,
Weight weight,
Collector collector)
Lower-level search API.
|
void |
IndexSearcher.search(Query query,
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)
|
Modifier and Type | Method and Description |
---|---|
static Collector |
MultiCollector.wrap(Iterable<? extends Collector> collectors)
Wraps a list of
Collector s with a MultiCollector . |
Constructor and Description |
---|
FilterCollector(Collector in)
Sole constructor.
|
PositiveScoresOnlyCollector(Collector in) |
TimeLimitingCollector(Collector collector,
Counter clock,
long ticksAllowed)
Create a TimeLimitedCollector wrapper over another
Collector with a specified timeout. |
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.