Reputation: 1208
I got an unknown issue with elasticsearch, and can't solve it.
Here's my query :
{
"query": {
"filtered": {
"query": {
"match_all": []
},
"filter": {
"bool": {
"must": {
"range": {
"date": {
"gte": "14/04/1915",
"lte": "10/05/1915",
"format": "dd/MM/yyyy"
}
}
}
}
}
}
}
}
This query does not work well. Here's the result of /_validate/query?explain
"index": "dev",
"valid": false,
"error": "org.elasticsearch.index.query.QueryParsingException: [dev] [range] filter does not support [format]"
Do you why it does not work ?
I can't manage to find the answer anywhere on the Inet
Upvotes: 3
Views: 1697
Reputation: 52366
It doesn't work because of this issue: https://github.com/elastic/elasticsearch/pull/7821 which has been added in 1.5.0. In your case, the solution is to upgrade.
Upvotes: 1