elasticsearch 多条件时间范围查询
{"query": {"bool": {"must": [{"match": {"name": "张"}},{"range": {"settlement_time": {"gte": "2019-01-01 04:00:00","lte": "2019-01-01 04:59:59",.
·
{
"query": {
"bool": {
"must": [
{
"match": {
"name": "张"
}
},
{
"range": {
"settlement_time": {
"gte": "2019-01-01 04:00:00",
"lte": "2019-01-01 04:59:59",
"format": "yyyy-MM-dd HH:mm:ss"
}
}
}
]
}
},
"from": 0,
"size": 20
}
给个关注+转发呗谢谢
更多推荐
所有评论(0)