我有一个搜索,我需要在其中找到数据的增量
http://localhost:9200/index/index_type/_search?q=sampledate[21-02-2015至 22-02-2015]
但是这个搜索给了我错误
有人可以帮忙吗?
最佳答案
您可以使用以下查询:
GET /index_name/index_type/_search?q=dateCreated:[2016-01-06+TO+2016-01-07]
这仅在
dateCreated
时有效是 date
field 。不适用于 String
关于elasticsearch - 如何在elasticsearch的uri请求搜索中找到日期范围,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35265465/