| Package | Description |
|---|---|
| org.apache.lucene.search.grouping |
Grouping.
|
| org.apache.lucene.search.grouping.function |
Support for grouping by
ValueSource. |
| org.apache.lucene.search.grouping.term |
Support for grouping by indexed terms via
DocValues. |
| Modifier and Type | Class and Description |
|---|---|
class |
CollectedSearchGroup<T>
Expert: representation of a group in
AbstractFirstPassGroupingCollector,
tracking the top doc and FieldComparator slot. |
| Modifier and Type | Field and Description |
|---|---|
private java.util.Collection<SearchGroup<GROUP_VALUE_TYPE>> |
AbstractSecondPassGroupingCollector.groups |
java.util.Iterator<SearchGroup<T>> |
SearchGroup.ShardIter.iter |
| Modifier and Type | Method and Description |
|---|---|
SearchGroup<T> |
SearchGroup.ShardIter.next() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<SearchGroup<GROUP_VALUE_TYPE>> |
AbstractFirstPassGroupingCollector.getTopGroups(int groupOffset,
boolean fillFields)
Returns top groups, starting from offset.
|
java.util.Collection<SearchGroup<T>> |
SearchGroup.GroupMerger.merge(java.util.List<java.util.Collection<SearchGroup<T>>> shards,
int offset,
int topN) |
static <T> java.util.Collection<SearchGroup<T>> |
SearchGroup.merge(java.util.List<java.util.Collection<SearchGroup<T>>> topGroups,
int offset,
int topN,
Sort groupSort)
Merges multiple collections of top groups, for example
obtained from separate index shards.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<SearchGroup<T>> |
SearchGroup.GroupMerger.merge(java.util.List<java.util.Collection<SearchGroup<T>>> shards,
int offset,
int topN) |
static <T> java.util.Collection<SearchGroup<T>> |
SearchGroup.merge(java.util.List<java.util.Collection<SearchGroup<T>>> topGroups,
int offset,
int topN,
Sort groupSort)
Merges multiple collections of top groups, for example
obtained from separate index shards.
|
| Constructor and Description |
|---|
AbstractSecondPassGroupingCollector(java.util.Collection<SearchGroup<GROUP_VALUE_TYPE>> groups,
Sort groupSort,
Sort withinGroupSort,
int maxDocsPerGroup,
boolean getScores,
boolean getMaxScores,
boolean fillSortFields) |
ShardIter(java.util.Collection<SearchGroup<T>> shard,
int shardIndex) |
| Constructor and Description |
|---|
FunctionDistinctValuesCollector(java.util.Map<?,?> vsContext,
ValueSource groupSource,
ValueSource countSource,
java.util.Collection<SearchGroup<MutableValue>> groups) |
FunctionSecondPassGroupingCollector(java.util.Collection<SearchGroup<MutableValue>> searchGroups,
Sort groupSort,
Sort withinGroupSort,
int maxDocsPerGroup,
boolean getScores,
boolean getMaxScores,
boolean fillSortFields,
ValueSource groupByVS,
java.util.Map<?,?> vsContext)
Constructs a
FunctionSecondPassGroupingCollector instance. |
| Constructor and Description |
|---|
TermDistinctValuesCollector(java.lang.String groupField,
java.lang.String countField,
java.util.Collection<SearchGroup<BytesRef>> groups)
Constructs
TermDistinctValuesCollector instance. |
TermSecondPassGroupingCollector(java.lang.String groupField,
java.util.Collection<SearchGroup<BytesRef>> groups,
Sort groupSort,
Sort withinGroupSort,
int maxDocsPerGroup,
boolean getScores,
boolean getMaxScores,
boolean fillSortFields) |