ElasticGraph Query API: Aggregations
ElasticGraph offers a powerful aggregations API. Each indexed type gets a corresponding *Aggregations
field.
Here’s a complete example:
Aggregation fields support filtering and pagination
but do not support client-specified sorting1. Under an aggregations field, each node
represents a grouping of documents. When groupedBy
fields have been requested,
each node represents the grouping of documents that have the groupedBy
values. When no groupedBy
fields have been requested,
a single node will be returned containing a grouping for all documents matched by the filter.
Aggregation nodes in turn offer 4 different aggregation features.