title: Elasticsearch completion suggester query in PHP
body: <p>I was not able to find a working example on how to query Elasticsearch using the completion suggester in PHP (elasticsearch-php).</p>
  
  <p>Querying via CURL, e.g.</p>
  
  <pre><code>curl -X POST 'localhost:9200/tstidx/_suggest?pretty' -d '{
  "try" : {
      "text" : "a",
      "completion" : {
          "field" : "suggest"
      }
  }
  }'
  </code></pre>
  
  <p>works, so the only problem is the query part in PHP.</p>
  
  <p>How do I use the API to query Elasticsearch using the completion suggester?</p>