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"
}
}
}
}