public class TopGroups<T> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TopGroups.ScoreMergeMode
How the GroupDocs score (if any) should be merged.
|
Modifier and Type | Field and Description |
---|---|
GroupDocs<T>[] |
groups
Group results in groupSort order
|
SortField[] |
groupSort
How groups are sorted against each other
|
float |
maxScore
Highest score across all hits, or
Float.NaN if scores were not computed. |
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
|
SortField[] |
withinGroupSort
How docs are sorted within each group
|
Constructor and Description |
---|
TopGroups(SortField[] groupSort,
SortField[] withinGroupSort,
int totalHitCount,
int totalGroupedHitCount,
GroupDocs<T>[] groups,
float maxScore) |
TopGroups(TopGroups<T> oldTopGroups,
Integer totalGroupCount) |
Modifier and Type | Method and Description |
---|---|
static <T> TopGroups<T> |
merge(TopGroups<T>[] shardGroups,
Sort groupSort,
Sort docSort,
int docOffset,
int docTopN,
TopGroups.ScoreMergeMode scoreMergeMode)
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 SortField[] groupSort
public final SortField[] withinGroupSort
public final float maxScore
Float.NaN
if scores were not computed.public TopGroups(SortField[] groupSort, SortField[] withinGroupSort, int totalHitCount, int totalGroupedHitCount, GroupDocs<T>[] groups, float maxScore)
public static <T> TopGroups<T> merge(TopGroups<T>[] shardGroups, Sort groupSort, Sort docSort, int docOffset, int docTopN, TopGroups.ScoreMergeMode scoreMergeMode)
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.