Package | Description |
---|---|
org.apache.lucene.facet |
faceted search
|
org.apache.lucene.index.sorter |
Provides index sorting capablities.
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.grouping |
This module enables search result grouping with Lucene, where hits
with the same value in the specified single-valued group field are
grouped together.
|
org.apache.lucene.search.grouping.function |
Support for grouping by
ValueSource . |
org.apache.lucene.search.grouping.term |
Support for grouping by indexed terms via
FieldCache . |
org.apache.lucene.search.join |
This modules support index-time and query-time joins.
|
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,
Filter filter,
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,
Filter filter,
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,
Filter filter,
int n,
Sort sort,
Collector fc)
Utility method, to search and also collect all hits
into the provided
Collector . |
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 TopDocs |
FacetsCollector.searchAfter(IndexSearcher searcher,
ScoreDoc after,
Query q,
Filter filter,
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,
Filter filter,
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,
Filter filter,
int n,
Sort sort,
Collector fc)
Utility method, to search and also collect all hits
into the provided
Collector . |
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 . |
Modifier and Type | Class and Description |
---|---|
class |
EarlyTerminatingSortingCollector
|
Modifier and Type | Field and Description |
---|---|
protected Collector |
EarlyTerminatingSortingCollector.in
The wrapped Collector
|
Constructor and Description |
---|
EarlyTerminatingSortingCollector(Collector in,
Sort sort,
int numDocsToCollect)
Create a new
EarlyTerminatingSortingCollector instance. |
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 |
MultiCollector
|
class |
PositiveScoresOnlyCollector
|
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 |
CachingCollector.other |
Modifier and Type | Method and Description |
---|---|
static Collector |
MultiCollector.wrap(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.
|
void |
BulkScorer.score(Collector collector)
Scores and collects all matching documents.
|
boolean |
ConstantScoreQuery.ConstantBulkScorer.score(Collector collector,
int max) |
abstract boolean |
BulkScorer.score(Collector collector,
int max)
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 of
Collector s with a MultiCollector . |
Constructor and Description |
---|
PositiveScoresOnlyCollector(Collector c) |
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 |
AbstractAllGroupHeadsCollector<GH extends AbstractAllGroupHeadsCollector.GroupHead>
This collector specializes in collecting the most relevant document (group head) for each group that match the query.
|
class |
AbstractAllGroupsCollector<GROUP_VALUE_TYPE>
A collector that collects all groups that match the
query.
|
class |
AbstractDistinctValuesCollector<GC extends AbstractDistinctValuesCollector.GroupCount<?>>
A second pass grouping collector that keeps track of distinct values for a specified field for the top N group.
|
class |
AbstractFirstPassGroupingCollector<GROUP_VALUE_TYPE>
FirstPassGroupingCollector is the first of two passes necessary
to collect grouped hits.
|
class |
AbstractGroupFacetCollector
Base class for computing grouped facets.
|
class |
AbstractSecondPassGroupingCollector<GROUP_VALUE_TYPE>
SecondPassGroupingCollector is the second of two passes
necessary to collect grouped docs.
|
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. |
Modifier and Type | Class and Description |
---|---|
class |
FunctionAllGroupHeadsCollector
An implementation of
AbstractAllGroupHeadsCollector for retrieving the most relevant groups when grouping
by ValueSource . |
class |
FunctionAllGroupsCollector
A collector that collects all groups that match the
query.
|
class |
FunctionDistinctValuesCollector
Function based implementation of
AbstractDistinctValuesCollector . |
class |
FunctionFirstPassGroupingCollector
Concrete implementation of
AbstractFirstPassGroupingCollector that groups based on
ValueSource instances. |
class |
FunctionSecondPassGroupingCollector
Concrete implementation of
AbstractSecondPassGroupingCollector that groups based on
ValueSource instances. |
Modifier and Type | Class and Description |
---|---|
class |
TermAllGroupHeadsCollector<GH extends AbstractAllGroupHeadsCollector.GroupHead<?>>
A base implementation of
AbstractAllGroupHeadsCollector for retrieving the most relevant groups when grouping
on a string based group field. |
class |
TermAllGroupsCollector
A collector that collects all groups that match the
query.
|
class |
TermDistinctValuesCollector
A term based implementation of
AbstractDistinctValuesCollector that relies
on SortedDocValues to count the distinct values per group. |
class |
TermFirstPassGroupingCollector
Concrete implementation of
AbstractFirstPassGroupingCollector that groups based on
field values and more specifically uses SortedDocValues
to collect groups. |
class |
TermGroupFacetCollector
An implementation of
AbstractGroupFacetCollector that computes grouped facets based on the indexed terms
from the FieldCache . |
class |
TermSecondPassGroupingCollector
Concrete implementation of
AbstractSecondPassGroupingCollector that groups based on
field values and more specifically uses SortedDocValues
to collect grouped docs. |
Modifier and Type | Class and Description |
---|---|
class |
ToParentBlockJoinCollector
Collects parent document hits for a Query containing one more more
BlockJoinQuery clauses, sorted by the
specified parent Sort.
|
Copyright © 2000-2016 The Apache Software Foundation. All Rights Reserved.