| Constructor and Description |
|---|
TermGrouper(String field)
Create a new TermGrouper
|
TermGrouper(String field,
int initialSize)
Create a new TermGrouper
|
| Modifier and Type | Method and Description |
|---|---|
AllGroupsCollector<BytesRef> |
getAllGroupsCollector()
Create an
AllGroupsCollector |
FirstPassGroupingCollector<BytesRef> |
getFirstPassCollector(Sort sort,
int count)
Create a first-pass collector
|
AllGroupHeadsCollector<BytesRef> |
getGroupHeadsCollector(Sort sort)
Create an
AllGroupHeadsCollector |
SecondPassGroupingCollector<BytesRef> |
getSecondPassCollector(Collection<SearchGroup<BytesRef>> groups,
Sort groupSort,
Sort withinGroupSort,
int maxDocsPerGroup,
boolean getScores,
boolean getMaxScores,
boolean fillSortFields)
Create a second-pass collector
|
public TermGrouper(String field)
field - the field to group onpublic TermGrouper(String field, int initialSize)
field - the field to group oninitialSize - the initial size of various internal datastructurespublic FirstPassGroupingCollector<BytesRef> getFirstPassCollector(Sort sort, int count) throws IOException
GroupergetFirstPassCollector in class Grouper<BytesRef>sort - the order in which groups should be returnedcount - how many groups to returnIOExceptionpublic AllGroupHeadsCollector<BytesRef> getGroupHeadsCollector(Sort sort)
GrouperAllGroupHeadsCollectorgetGroupHeadsCollector in class Grouper<BytesRef>sort - a within-group sort order to determine which doc is the group headpublic AllGroupsCollector<BytesRef> getAllGroupsCollector()
GrouperAllGroupsCollectorgetAllGroupsCollector in class Grouper<BytesRef>public SecondPassGroupingCollector<BytesRef> getSecondPassCollector(Collection<SearchGroup<BytesRef>> groups, Sort groupSort, Sort withinGroupSort, int maxDocsPerGroup, boolean getScores, boolean getMaxScores, boolean fillSortFields) throws IOException
GroupergetSecondPassCollector in class Grouper<BytesRef>IOExceptionCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.