parent
9b03fda5d7
commit
33097d901b
|
@ -301,7 +301,7 @@ Ordering the buckets by multi value metrics sub-aggregation (identified by the a
|
|||
--------------------------------------------------
|
||||
|
||||
It is also possible to order the buckets based on a "deeper" aggregation in the hierarchy. This is supported as long
|
||||
as the aggregations path are of a single-bucket type, where the last aggregation in the path may either by a single-bucket
|
||||
as the aggregations path are of a single-bucket type, where the last aggregation in the path may either be a single-bucket
|
||||
one or a metrics one. If it's a single-bucket type, the order will be defined by the number of docs in the bucket (i.e. `doc_count`),
|
||||
in case it's a metrics one, the same rules as above apply (where the path must indicate the metric name to sort by in case of
|
||||
a multi-value metrics aggregation, and in case of a single-value metrics aggregation the sort will be applied on that value).
|
||||
|
|
Loading…
Reference in New Issue