You are looking at documentation for an older release. Not what you want? See the current release documentation.
Let’s perform a
terms aggregation but sort by
doc_count, in ascending order:
Sort by document count. Works with
Sort by the string value of a term alphabetically. Works only with
Sort by the numeric value of each bucket’s key (conceptually similar to
_term). Works only with