我試圖運行的NodeJS一個簡單的查詢VS我ElasticSearch:的NodeJS與ElasticSearch - 不斷得到[query_parsing_exception] [系列]查詢不支持[日]
client.search({
index: "usage_*",
size : 100,
from: 0,
body: {
query: {
filtered:{
filter:{
bool:{
must: [{"range":{"created":{"gte":{"day":"09","month":"08","year":"2017"},"lt":"now"}}}]
}
}
}
}
}
}
和我不斷收到同一個異常:
[query_parsing_exception] [範圍]查詢不支持[天],含{ 指數= 「usage_2017-04-01」 &線= 1個& COL = 83}(和) [query_parsing_exception] [範圍]查詢不支持[d ay],{ index =「usage_2017-04-02」& line = 1 & col = 83}(and) [query_parsing_exception] [range] query does not support [day],with { index =「usage_2017- 04-03" &線= 1個& COL = 83}(和)
有人可以指向我的問題?我明白,我可以寫我上面寫的日期(顯然我可以寫在其他語法,但我使用我創建的通用查詢生成器生成此搜索調用)