public class TopGroups<GROUP_VALUE_TYPE> extends Object
Modifier and Type | Field and Description |
---|---|
GroupDocs<GROUP_VALUE_TYPE>[] |
groups
Group results in groupSort order
|
org.apache.lucene.search.SortField[] |
groupSort
How groups are sorted against each other
|
Integer |
totalGroupCount
The total number of unique groups.
|
int |
totalGroupedHitCount
Number of documents grouped into the topN groups
|
int |
totalHitCount
Number of documents matching the search
|
org.apache.lucene.search.SortField[] |
withinGroupSort
How docs are sorted within each group
|
Constructor and Description |
---|
TopGroups(org.apache.lucene.search.SortField[] groupSort,
org.apache.lucene.search.SortField[] withinGroupSort,
int totalHitCount,
int totalGroupedHitCount,
GroupDocs<GROUP_VALUE_TYPE>[] groups) |
TopGroups(TopGroups<GROUP_VALUE_TYPE> oldTopGroups,
Integer totalGroupCount) |
Modifier and Type | Method and Description |
---|---|
static <T> TopGroups<T> |
merge(TopGroups<T>[] shardGroups,
org.apache.lucene.search.Sort groupSort,
org.apache.lucene.search.Sort docSort,
int docOffset,
int docTopN)
Merges an array of TopGroups, for example obtained
from the second-pass collector across multiple
shards.
|
public final int totalHitCount
public final int totalGroupedHitCount
public final Integer totalGroupCount
null
this value is not computed.public final GroupDocs<GROUP_VALUE_TYPE>[] groups
public final org.apache.lucene.search.SortField[] groupSort
public final org.apache.lucene.search.SortField[] withinGroupSort
public TopGroups(org.apache.lucene.search.SortField[] groupSort, org.apache.lucene.search.SortField[] withinGroupSort, int totalHitCount, int totalGroupedHitCount, GroupDocs<GROUP_VALUE_TYPE>[] groups)
public TopGroups(TopGroups<GROUP_VALUE_TYPE> oldTopGroups, Integer totalGroupCount)
public static <T> TopGroups<T> merge(TopGroups<T>[] shardGroups, org.apache.lucene.search.Sort groupSort, org.apache.lucene.search.Sort docSort, int docOffset, int docTopN) throws IOException
IOException