title: How to run Elasticsearch completion suggester query on limited set of documents
body: <p>I'm using a completion suggester in Elasticsearch on a single field. The type contains documents of several users. Is there a way to limit the returned suggestions to documents that match a specific query? </p>
  
  <p>I'm currently using this query:</p>
  
  <pre><code>{
    "name" : {
      "text" : "Peter",
      "completion" : {
        "field" : "name_suggest"
      }
    }
  }
  </code></pre>
  
  <p>Is there a way to combine this query with a different one, e.g.</p>
  
  <pre><code>{
      "query":{
          "term" : {
              "user_id" : "590c5bd2819c3e225c990b48"
          }
      }
  }
  </code></pre>