Answers for "terms aggregation getting custom results 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 "terms aggregation getting custom results in elasticsearch"

Browse Popular Code Answers by Language