Package | Description |
---|---|
org.apache.lucene.benchmark.byTask.tasks |
Extendable benchmark tasks.
|
org.apache.lucene.facet |
Faceted search.
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.grouping |
Grouping.
|
org.apache.lucene.search.suggest.document |
Support for document suggestion
|
Modifier and Type | Method and Description |
---|---|
protected Collector |
ReadTask.createCollector() |
protected Collector |
SearchWithCollectorTask.createCollector() |
Modifier and Type | Class and Description |
---|---|
class |
FacetsCollector
Collects hits for subsequent faceting.
|
class |
RandomSamplingFacetsCollector
Collects hits for subsequent faceting, using sampling if needed.
|
Modifier and Type | Method and Description |
---|---|
DrillSideways.DrillSidewaysResult |
DrillSideways.search(DrillDownQuery query,
Collector hitCollector)
Search, collecting hits with a
Collector , and
computing drill down and sideways counts. |
static TopDocs |
FacetsCollector.search(IndexSearcher searcher,
Query q,
int n,
Collector fc)
Utility method, to search and also collect all hits
into the provided
Collector . |
static TopFieldDocs |
FacetsCollector.search(IndexSearcher searcher,
Query q,
int n,
Sort sort,
boolean doDocScores,
boolean doMaxScore,
Collector fc)
Utility method, to search and also collect all hits
into the provided
Collector . |
static TopFieldDocs |
FacetsCollector.search(IndexSearcher searcher,
Query q,
int n,
Sort sort,
Collector fc)
Utility method, to search and also collect all hits
into the provided
Collector . |
static TopDocs |
FacetsCollector.searchAfter(IndexSearcher searcher,
ScoreDoc after,
Query q,
int n,
Collector fc)
Utility method, to search and also collect all hits
into the provided
Collector . |
static TopDocs |
FacetsCollector.searchAfter(IndexSearcher searcher,
ScoreDoc after,
Query q,
int n,
Sort sort,
boolean doDocScores,
boolean doMaxScore,
Collector fc)
Utility method, to search and also collect all hits
into the provided
Collector . |
static TopDocs |
FacetsCollector.searchAfter(IndexSearcher searcher,
ScoreDoc after,
Query q,
int n,
Sort sort,
Collector fc)
Utility method, to search and also collect all hits
into the provided
Collector . |
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.
|
static class |
CheckHits.ExplanationAsserter
Asserts that the score explanation for every document matching a
query corresponds with the true score.
|
static class |
CheckHits.MatchesAsserter
Asserts that the
Matches from a query is non-null whenever
the document its created for is a hit. |
static class |
CheckHits.SetCollector
Just collects document ids into a set.
|
class |
DiversifiedTopDocsCollector
A
TopDocsCollector that controls diversity in results by ensuring no
more than maxHitsPerKey results from a common source are collected in the
final results. |
class |
DocValuesStatsCollector
A
Collector which computes statistics for a DocValues field. |
class |
EarlyTerminatingSortingCollector
Deprecated.
Pass trackTotalHits=false to
TopFieldCollector instead of using this class. |
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(java.lang.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 |
ScorerIndexSearcher.search(java.util.List<LeafReaderContext> leaves,
Weight weight,
Collector collector) |
protected void |
AssertingIndexSearcher.search(java.util.List<LeafReaderContext> leaves,
Weight weight,
Collector collector) |
protected void |
IndexSearcher.search(java.util.List<LeafReaderContext> leaves,
Weight weight,
Collector collector)
Lower-level search API.
|
void |
CheckHits.ExplanationAssertingSearcher.search(Query query,
Collector results) |
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(java.lang.Iterable<? extends Collector> collectors)
Wraps a list of
Collector s with a MultiCollector . |
Constructor and Description |
---|
EarlyTerminatingSortingCollector(Collector in,
Sort sort,
int numDocsToCollect)
Deprecated.
Create a new
EarlyTerminatingSortingCollector instance. |
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. |
Modifier and Type | Class and Description |
---|---|
class |
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.
|
Modifier and Type | Class and Description |
---|---|
class |
AllGroupHeadsCollector<T>
This collector specializes in collecting the most relevant document (group head) for each
group that matches the query.
|
class |
AllGroupsCollector<T>
A collector that collects all groups that match the
query.
|
class |
BlockGroupingCollector
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 atomic
IndexWriter.addDocuments()
or IndexWriter.updateDocuments()
API. |
class |
DistinctValuesCollector<T,R>
A second pass grouping collector that keeps track of distinct values for a specified field for the top N group.
|
class |
FirstPassGroupingCollector<T>
FirstPassGroupingCollector is the first of two passes necessary
to collect grouped hits.
|
class |
GroupFacetCollector
Base class for computing grouped facets.
|
class |
SecondPassGroupingCollector<T>
SecondPassGroupingCollector runs over an already collected set of
groups, further applying a
GroupReducer to each group |
class |
TermGroupFacetCollector
An implementation of
GroupFacetCollector that computes grouped facets based on the indexed terms
from DocValues. |
class |
TopGroupsCollector<T>
A second-pass collector that collects the TopDocs for each group, and
returns them as a
TopGroups object |
Modifier and Type | Class and Description |
---|---|
class |
TopSuggestDocsCollector
Collector that collects completion and
score, along with document id |
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.