title: How can I add filter to Completion Suggester in ElasticSearch?
body: <p>Does anyone know how to add filter to suggester?</p>
  
  <p>This works very well:</p>
  
  <pre><code>{
  "headline-suggest" : {
      "text" : "n",
      "completion" : {
          "field" : "headline_suggest"
      }
  }
  </code></pre>
  
  <p>but I want force ElasticSearch to build list of suggestions from subset of data, like:</p>
  
  <pre><code>{
  "headline-suggest" : {
      "text" : "n",
      "completion" : {
          "field" : "headline_suggest"
      }
  },
  "filter" : {
      "term" : { "mydifferentfield" : "someword" }
  }
  }
  </code></pre>
  
  <p>How can I achieve it?</p>
  
  <p>(I'm using elasticsearch 0.90.5)</p>