Homepage

AggregationSortFieldEnum

Last edit: Nov 10, 2026

What the buckets of a terms aggregation are ordered by

enum AggregationSortFieldEnum {
  _count
  _term
}

Values

_count

Order buckets by the number of documents they contain

_term

Order buckets by their value

Questions?

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

contact us