This information applies to version 1.x of Elasticsearch. For the most up to date information, see the current version of the Elasticsearch Reference.
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