查询JSON如下:
{
"query": {
"bool": {
"filter": [
{
"terms": {
"T2.keyword": [
“北京”,“天津”,“上海”
]
}},
{"range": {
"T12": {
"gt": "2019-11-01 00:00:00 000",
"lt": "2019-12-01 00:00:00 000"
}
}}
]
}
},
"from": 0,
"size": 10,
"sort": [],
"aggs": {"group_by_tags": {
"terms": {
"field": "T2.keyword",
"size": 400
}
}
}