title: ElasticSearch, multi-match with filter?
body: <p>I have a multi-match query in ES, and wish to add a filter.</p>
  
  <pre><code>{
    "multi_match" : {
      "query" : "this is a test",
      "fields" : [ "subject^2", "message" ]
    }
  }
  </code></pre>
  
  <p>What is the syntax for adding this filter?</p>
  
  <p>I tried:</p>
  
  <pre><code>{
    "multi_match" =&gt; {
      "query" =&gt; "list",
      "fields" =&gt; [ "username" ]
  
    },
  "filter" =&gt; {
          "term" =&gt; { "username" =&gt; "slimkicker"}
      }
  }
  </code></pre>