在Elasticsearch中查询日期范围未返回正确的日期

时间:2019-01-31 19:27:02

标签: python elasticsearch

我正在查询具有特定时间戳记的所有条目:    res = Search(using = es,index = index).query(“ range”,timestamp = {'gte':'2020-04-25T16:16:45.000Z'})

但是,我看到结果中出现了2018年日期,例如:

2018-09-06T18:22:14.768Z

这个问题在我尝试查询的任何日期都会发生,甚至像这样:

timestamp = {'lt':'2010-04-25T16:16:45.000Z'}

将返回2018年的参赛作品。

有人知道为什么吗,有人可以解释一下问题和解决方案吗?谢谢!

不幸的是,我无法发布任何图片/屏幕截图。

0 个答案:

没有答案
相关问题