es聚合查询

GET myindex/mytype/_search
{
"query": {
"range":{
"UPLOADTIME":{
"gte":"2017-09-01",
"lt":"2017-09-07"
}
}
},

"size": 0,
"aggs": {
"CUSTOM": {
"terms": {
"field": "CUSTOMID",
"size": 500
}
}
}
}

posted on 2018-01-02 10:17  zhangfeitaimengle  阅读(186)  评论(0编辑  收藏  举报

导航