Range filter does not support format

I have an unknown problem with elasticsearch and cannot solve it.

Here's my request:

{
  "query": {
    "filtered": {
      "query": {
        "match_all": []
      },
      "filter": {
        "bool": {
          "must": {
            "range": {
              "date": {
                "gte": "14/04/1915",
                "lte": "10/05/1915",
                "format": "dd/MM/yyyy"
              }
            }
          }
        }
      }
    }
  }
}         

      

This request does not work. Is here the result of / _validate / query? Explain

"index": "dev",
"valid": false,
"error": "org.elasticsearch.index.query.QueryParsingException: [dev] [range] filter does not support [format]"

      

Why doesn't it work?

I cannot find the answer anywhere on the Inet

+3


source to share


1 answer


It doesn't work due to this issue: https://github.com/elastic/elasticsearch/pull/7821 which was added in 1.5.0. In your case, the solution should be updated.



+1


source







All Articles