title: Elasticsearch: how to use dismax query with filter
body: <p>I am having hard time to figure out how to use elsticsearch dis_max query with filters.</p>
  
  <p>When I do this:</p>
  
  <pre><code>{
      "query": {
          "dis_max": {
              "queries": [{
                  "multi_match": {}
              },
              { 
                  "multi_match": {}
              }],
              "filter": {
                  //Term filter
              }           
          }
      }
  }
  </code></pre>
  
  <p>Its says <strong>[dis_max] query does not support [filter]</strong>. but I can use dis_max query with filtered aliases.</p>
  
  <p>Ex: I create an alias with filter defined like below and use the same while doing dis_max query and it works perfectly.</p>
  
  <pre><code> {
     "add" : {
         "index" : "test1",
         "alias" : "alias1",
         "filter" : { //Term filter }
      }
   }
  </code></pre>
  
  <p>So there should be someway to achieve this without creating aliases. can anyone please tell me how to do it.</p>