Skip to content

Commit

Permalink
Update term aggregation order docs
Browse files Browse the repository at this point in the history
  • Loading branch information
PSeitz authored Jun 13, 2024
1 parent c53558b commit 89e2b84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/reference/aggregation.md
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ _Expensive_ : When set to 0, this will return all terms in the field.

Set the order. String is here a target, which is either “_count”, “_key”, or the name of a metric sub_aggregation.
Single value metrics like average can be addressed by its name. Multi value metrics like stats are required to address their field by name e.g. “stats.avg”.

_Limitation_ : Ordering is only supported by one property currently. Passing an array for `order` is _not_ supported `"order": [{ "average_price": "asc" }, { "_key": "asc" }]`.

Order alphabetically
```json skip
Expand Down

0 comments on commit 89e2b84

Please sign in to comment.