Filtered Query not working with Elasticsearch 1.3.0

Filtered query not working with Elasticsearch 1.3.0. I upgrade
elasticsearch 0.90.5 to 1.3.0.
I am using elasticsearch Query DSL;

{
    "query": {
        "match_all": {},
        "filtered": {
           "filter": {
               "bool": {
                   "must": [
                      {
                          "terms": {
                             "status": [
                                "publish"
                             ]
                          }
                      }
                   ]
               }
           }
        }
    }
}

In Elasticsearch 0.90.5 below query DSL is working fine. But in
Elasticsearch 1.3.0 getting error.

ElasticsearchParseException[Expected field name but got START_OBJECT

Complete Error Message:

{

    error: SearchPhaseExecutionException[Failed to execute phase [query

], all shards failed; shardFailures {[8FQelETaR22xvV1SvynPEQ][esindex][0]:
RemoteTransportException[[server1][inet[/127.0.0.1:9300]][search/phase/query
]]; nested: SearchParseException[[esindex][0]: query[ConstantScore(:)],
from[-1],size[1]: Parse Failure [Failed to parse source [{"size":1,"query":{
"match_all":{},"filtered":{"filter":{"bool":{"must":[{"terms":{"status":[
"publish"]}}]}}}}}]]]; nested: ElasticsearchParseException[Expected field
name but got START_OBJECT "filtered"]; }{[8FQelETaR22xvV1SvynPEQ][esindex][1
]: RemoteTransportException[[server1][inet[/127.0.0.1:9300]][search/phase/
query]]; nested: SearchParseException[[esindex][1]: query[ConstantScore
(:)],from[-1],size[1]: Parse Failure [Failed to parse source [{"size":1,
"query":{"match_all":{},"filtered":{"filter":{"bool":{"must":[{"terms":{
"status":["publish"]}}]}}}}}]]]; nested: ElasticsearchParseException[
Expected field name but got START_OBJECT "filtered"]; }{[
hZgYLUmsQL2T8z1MY2eyNA][esindex][2]: SearchParseException[[esindex][2]:
query[ConstantScore(:)],from[-1],size[1]: Parse Failure [Failed to parse
source [{"size":1,"query":{"match_all":{},"filtered":{"filter":{"bool":{
"must":[{"terms":{"status":["publish"]}}]}}}}}]]]; nested:
ElasticsearchParseException[Expected field name but got START_OBJECT
"filtered"]; }]
status: 400

}    

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/e0e632cb-1f58-417e-b642-eabfd8514942%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.