title: Elasticsearch: How to use two different multiple matching fields?
body: <p>I want to do something much like the <a href="http://www.elasticsearch.org/guide/reference/query-dsl/and-filter/" rel="noreferrer">'and' filter example</a> except with terms with a 'should' in each one, instead of the field types in the example. I came up with the following:</p>
  
  <pre><code>    {
    "query": {
      "bool": {
        "must": [
          {
            "ids": {
              "type": "foo",
              "values": [
                "fff",
                "bar",
                "baz",
              ]
            }
          }
        ]
      }
    },
    "filter": {
      "and": {
        "filters": [
          {
            "bool": {
              "should": {
                "term": {
                  "fruit": [
                    "orange",
                    "apple",
                    "pear",
                  ]
                }
              },
              "minimum_should_match": 1
            }
          },
          {
            "bool": {
              "should": {
                "term": {
                  "color": [
                    "red",
                    "yellow",
                    "green"
                  ]
                }
              },
              "minimum_should_match": 1
            }
          }
        ]
      }
    }
  }
  </code></pre>
  
  <p>However, I get this error:</p>
  
  <pre><code>[bool] filter does not support [minimum_should_match];
  </code></pre>
  
  <p>Is there another way to go about what I'm attempting to do, or am I on the right track? Or is this just not possible in elasticsearch?</p>