统计订单中,80后用户总数

GET orderlist/_count
{
  "query": {
    "range": {
      "birthday": {
        "gte": "1980-01-01",
        "lte": "1989-12-31"
      }
    }
  }
}

响应:

{
  "count" : 1430000,
  "_shards" : {
    "total" : 6,
    "successful" : 6,
    "skipped" : 0,
    "failed" : 0
  }
}