title: How to use filter in match_all in elastic search
body: <p>Query is below</p>
  <pre><code>{
    &quot;from&quot; : 0, 
    &quot;size&quot; : 100,
    &quot;query&quot;: {
      &quot;match_all&quot;: {}
    }
  }
  </code></pre>
  <p>I need to <code>filter</code> from the match_all if <code>name</code> is <code>test</code></p>
  <p>i tried with</p>
  <pre><code>{
    &quot;from&quot; : 0,
    &quot;size&quot; : 100,
    &quot;query&quot;: {
      &quot;match_all&quot;: {}
    },
    &quot;filter&quot;: [ &quot;term&quot;: { &quot;name&quot;: &quot;test&quot; }}]
  }
  </code></pre>
  <p>I got error 'Unknown key for a START_ARRAY in [filter].')</p>