bool query does not support filter
<p>This is the query that throws the exception using ES 2.0:</p>

<pre><code>bool query does not support filter
</code></pre>

<p>How to use Exists and Missing query?</p>

<p>Query:</p>

<pre><code>{
   "bool":{
      "must":[
         {
            "bool":{
               "should":[
                  {
                     "bool":{
                        "must":[
                           {
                              "range":{
                                 "startDate":{
                                    "lte":"2016-10-27T11:24:49.6616538+05:30"
                                 }
                              }
                           }
                        ],
                        "filter":[
                           {
                              "bool":{
                                 "must_not":[
                                    {
                                       "exists":{
                                          "field":"endDate"
                                       }
                                    }
                                 ]
                              }
                           }
                        ]
                     }
                  }
               ]
            }
         }
      ]
   }
}
</code></pre>