Executing Aggregations

curl -XPOST 'localhost:9200/bank/_search?pretty' -d '
{
  "size": 0,
  "aggs": {
    "group_by_state": {
      "terms": {
        "field": "state",
        "size": 2
      }
    }
  }
}'

你可能感兴趣的:(Executing Aggregations)