你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
搜索:
if (startTime != null && endTime != null){ boolQueryBuilder.must(QueryBuilders.rangeQuery("create_time").from(startTime) .to(endTime)); }
没有找到相关结果
Marquezzzz
赞同来自:
The Range Query also supports a time_zone parameter, but this will only affect the bounds you apply in the query itself, not the stored values.
匿名用户
要回复问题请先登录或注册
2 个回复
Marquezzzz
赞同来自:
匿名用户
赞同来自:
查询的时候,直接使用UTC时间格式就行了。可以加上+0800 时区。