private static class TopGroupsCollector.TopDocsReducer<T> extends GroupReducer<T,TopDocsCollector<?>>
| Modifier and Type | Field and Description |
|---|---|
private boolean |
needsScores |
private java.util.function.Supplier<TopDocsCollector<?>> |
supplier |
| Constructor and Description |
|---|
TopDocsReducer(Sort withinGroupSort,
int maxDocsPerGroup,
boolean getScores,
boolean getMaxScores,
boolean fillSortFields) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
needsScores()
Whether or not this reducer requires collected documents to be scored
|
protected TopDocsCollector<?> |
newCollector()
Creates a new Collector for each group
|
collect, getCollector, setGroups, setNextReader, setScorerprivate final java.util.function.Supplier<TopDocsCollector<?>> supplier
private final boolean needsScores
TopDocsReducer(Sort withinGroupSort, int maxDocsPerGroup, boolean getScores, boolean getMaxScores, boolean fillSortFields)
public boolean needsScores()
GroupReducerneedsScores in class GroupReducer<T,TopDocsCollector<?>>protected TopDocsCollector<?> newCollector()
GroupReducernewCollector in class GroupReducer<T,TopDocsCollector<?>>