首页 > 其他分享 >es组合查询

es组合查询

时间:2022-11-22 18:01:32浏览次数:43  
标签:sort 组合 查询 collect time es

POST yi_cloud_ecs_monitor/_search
{
"query": {
"bool": {
"must": {
"terms": {
"storage_rate": [
"0","0"
]
}
},
"filter": {
"range": {
"collect_time": {
"gte": 1664553600000,
"lte": 1667231999000
}
}
}
}
},
"sort": {
"collect_time": {
"order": "desc"
}
},
"size": 10
}

标签:sort,组合,查询,collect,time,es
From: https://www.cnblogs.com/yylwy/p/16915952.html

相关文章