public class Group extends DslCloneable
QueryDefinition.getGroupedQuery()
and QueryDefinition.getGroupedFilters()
could override main query
and filter queries when selecting group details.
Note: In order to use these features the documents must be located on the same shard. This could be achieved by restricting data collection to one shard, or by setting up Document Routing on indexing.
Constructor and Description |
---|
Group(String field,
GroupLeaderStrategy leaderStrategy,
List<SortElement> sort,
Long size) |
Modifier and Type | Method and Description |
---|---|
Group |
clone() |
String |
getField() |
GroupLeaderStrategy |
getLeaderStrategy() |
Long |
getSize() |
List<SortElement> |
getSort() |
void |
setSort(List<SortElement> sort) |
clone, deepClone
public Group(String field, GroupLeaderStrategy leaderStrategy, List<SortElement> sort, Long size)
public String getField()
public GroupLeaderStrategy getLeaderStrategy()
public List<SortElement> getSort()
public void setSort(List<SortElement> sort)
public Long getSize()
public Group clone()
clone
in class DslCloneable