title: Elasticsearch bool query with filter
body: <p>I am trying to write a Elasticsearch bool query of 2 parts.
  I want two conditions for "must" and two for "should". The problem is that i want to get the score only for "should". I tried the "filter" without success.</p>
  
  <p>To be more specific, the query i made is here:</p>
  
  <pre><code>{
    "query": {
      "bool": {
        "must": [
          {
            "match": {
              "attr1": "on"
            }
          },
          {
            "match": {
              "category": "7eb84c804a8c824fd608e05f78d42f10"
            }
          }
        ],
        "should": [
          {
            "term": {
              "attr2": "on"
            }
          },
          {
            "term": {
              "attr3": "on"
            }
          }
        ],
        "minimum_should_match": "10%"
      }
    }
  }
  </code></pre>
  
  <p><strong>UPDATE</strong>
  Here is the query that failed and i want to find the error!:</p>
  
  <pre><code>  {
    "query": {
      "bool": {
        "filter": [
          {
            "term": {
              "attr1": "on"
            }
          },
          {
            "term": {
              "category": "7eb84c804a8c824fd608e05f78d42f10"
            }
          }
        ],
        "should": [
          {
            "term": {
              "attr2": "on"
            }
          },
          {
            "term": {
              "attr3": "on"
            }
          }
        ],
        "minimum_should_match": "10%"
      }
    }
  }
  </code></pre>
  
  <p>How can re-write this query in order:
  1) get all rows that attr1 and category are exact
  2) then query these results with should</p>
  
  <p>Any idea please?</p>