Homepage

AggregationSort

Last edit: Nov 10, 2026

Order of the buckets returned by a terms aggregation

type AggregationSort {
  name: AggregationSortFieldEnum
  order: AggregationSortOrderEnum
}

Fields

name (AggregationSortFieldEnum)

What to order the buckets by

order (AggregationSortOrderEnum)

Direction of the ordering

Questions?

We are always happy to help with any questions you may have.

contact us