求助 使用JestClient如何一次查询多个小时间段 如3号2点到16点 4号2点到16点 5号2点到16点
匿名 | 发布于2018年07月07日 | 阅读数:3239
{
"query": {
"bool": {
"must": [
{
"terms": {
"pfrLineUuid": [
"a0709b5b66a541d89726"
]
}
},
{
"range": {
"pfrUploadTime": {
"from": "2018-03-16T00:00:00",
"to": "2018-03-17T23:59:59",
"include_lower": true,
"include_upper": true
}
}
},
{
"range": {
"pfrUploadTime": {
"from": "00:00:00",
"to": "15:00:00",
"format": "HH:mm:ss",
"include_lower": true,
"include_upper": true
}
}
}
]
}
}
}
format写成年月日起作用 时分秒就不起作用了 有啥好的方法没
"query": {
"bool": {
"must": [
{
"terms": {
"pfrLineUuid": [
"a0709b5b66a541d89726"
]
}
},
{
"range": {
"pfrUploadTime": {
"from": "2018-03-16T00:00:00",
"to": "2018-03-17T23:59:59",
"include_lower": true,
"include_upper": true
}
}
},
{
"range": {
"pfrUploadTime": {
"from": "00:00:00",
"to": "15:00:00",
"format": "HH:mm:ss",
"include_lower": true,
"include_upper": true
}
}
}
]
}
}
}
format写成年月日起作用 时分秒就不起作用了 有啥好的方法没
0 个回复