title: minimum_should_match in connection with dis-max-query
body: <p>I am a neewby in elasticsearch as I just recently switched from Solr. I am now trying to convert an edismax query from my solrconfig to work with elasticsearch.</p>
  
  <p>Basically I want the terms to be searched in two fields at once, so I ended up with this query:</p>
  
  <pre><code>{
    "query": {
      "dis_max": {
        "queries": [
          {
            "match": {
              "field_1": {
                "query": "term1"
              }
            }
          },
          {
            "match": {
              "field_2": {
                "query": "term1"
              }
            }
          }
        ]
      }
    }
  }
  </code></pre>
  
  <p>This works fine with a single term. In case of multiple terms it's not required that each term is found. However, I could not find a way to implement this feature. That's what the <a href="http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-minimum-should-match.html" rel="nofollow">minimum_should_match</a> parameter should be for – which is provided by the <a href="http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-bool-query.html" rel="nofollow">bool query</a>.</p>
  
  <p>Let's say I have three terms and I want at least two of them to be found. Via trial and error I checked a lot of variants including something like this:</p>
  
  <pre><code>{
    "query": {
      "dis_max": {
        "queries": [
          {
            "match": {
              "field_1": {
                "query": "term1 term2 nonexistingterm",
                "operator": "and",
                "minimum_should_match": 2
              }
            }
          },
          {
            "match": {
              "field_2": {
                "query": "term1 term2 nonexistingterm",
                "operator": "and",
                "minimum_should_match": 2
              }
            }
          }
        ]
      }
    }
  }
  </code></pre>
  
  <p>But <code>minimum_should_match</code> does not work here, and due to the <code>and</code> operator no results are found. It doesn't work with <code>or</code> neither as only one hit is enough to return results.</p>
  
  <p>Can someone help me to combine <code>dis_max</code> with <code>minimum should match</code>?</p>
  
  <p>I could not find any documentation about this, so any hints where I can find these information in elasticsearch myself are very appreciated!</p>