Compatibility problem

Hello, I was using Elasticsearch 2.2 and now I'm using Elasticsearch 5.1, i'm using pyelasticsearch and this query worked good in 2.2, but in 5.1 I got an (400, u'parsing_exception'). I can't figurate what is wrong. Thank you if you could help me.

query = {
    "query": {
    "filtered": {
      "query": {
        "match_all": {}
      },
      "filter": {
        "range": {
          "art_date": {
            "from": startdate + " 00:00:00",
            "to": enddate + " 00:00:00"
          }
        }
      }
    }
    },
    "aggs" : {
    "articles_over_time" : {
            "date_histogram" : {
                "field" : "art_date",
                "interval" : countby ,
                "format" : "yyyy-MM-dd HH:mm:ss"
                }
            }
        }
    }

What if you echo out the query that is run and then run it manually?
Also, have a look in the ES logs, it should mention something

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.