title: ElasticSearch using wildcard and term queries
body: <p>I'm new using Elastic Search, and i never used Lucene too.</p>
  
  <p>I build this query:</p>
  
  <pre><code>  {
      "query" : {
        "wildcard" : { "referer" : "*.domain.com*" }
      },
      "filter" : {
        "query" : {
          "term" : { "first" : "1" }
        }
      },
      "facets" : {
        "site_id" : {
          "terms" : {
            "field" : "site",
            "size" : "70"
          }
        }
      }
    }
  </code></pre>
  
  <p>The wildcard is working great, but the term filter was ignored, what i did wrong?</p>
  
  <p>I need to filter the results with both wildcard and term</p>
  
  <p>Thanks!</p>