Answers for "aggregation query in elasticsearch"

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 "aggregation query in elasticsearch"

Browse Popular Code Answers by Language