Answers for "how to custom order aggregation result by elastic search"

2

terms aggregation elasticsearch using Key order

GET /_search
{
  "aggs": {
    "genres": {
      "terms": {
        "field": "genre",
        "order": { "_count": "asc" }
      }
    }
  }
}
Posted by: Guest on September-21-2020

Code answers related to "how to custom order aggregation result by elastic search"

Browse Popular Code Answers by Language