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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With