title: 'suggest' mapping for ElasticSearch index doesn't return results
body: <p>I have an index that looks like the following</p>
  
  <pre><code>[question_index] =&gt; Array
          (
              [mappings] =&gt; Array
                  (
                      [QUESTION] =&gt; Array
                          (
                              [properties] =&gt; Array
                                  (
                                      [body] =&gt; Array
                                          (
                                              [type] =&gt; string
                                          )
  
                                      [general_suggest] =&gt; Array
                                          (
                                              [type] =&gt; completion
                                              [analyzer] =&gt; simple
                                              [payloads] =&gt; 1
                                              [preserve_separators] =&gt; 1
                                              [preserve_position_increments] =&gt; 1
                                              [max_input_length] =&gt; 50
                                          )
                                  )
  
                          )
  
                  )
  
          )
  </code></pre>
  
  <p>I added the suggest mapping with the following PHP code. </p>
  
  <pre><code>$param['index']    = 'question_index';
  $param['type']      = 'QUESTION';
  $param['body']      = array(
      '_source'       =&gt; array(
          'enabled' =&gt; true
      ),
      'properties'    =&gt; array(
          'body'      =&gt; array('type' =&gt; 'string'),
          'general_suggest'   =&gt; array(
              'type'              =&gt; 'completion',
              'index_analyzer'    =&gt; 'simple',
              'search_analyzer'   =&gt; 'simple',
              'payloads'          =&gt; true
          )
      )
  );
  $result     = $client-&gt;indices()-&gt;putMapping($param);
  </code></pre>
  
  <p>I tried to get suggested results with the following PHP code</p>
  
  <pre><code>    $param                                  = array();
      $param['index']                     = 'question_index';
      $param['body']['text']                  = 'someth';//should return 'something' as a suggest
      $param['body']['completion']['field']   = 'general_suggest';
      $result     = $client-&gt;suggest($param);
  </code></pre>
  
  <p>Whenever I run the above code I get the following errors. </p>
  
  <pre><code>Array
  (
      [_shards] =&gt; Array
          (
              [total] =&gt; 5
              [successful] =&gt; 0
              [failed] =&gt; 5
              [failures] =&gt; Array
                  (
                      [0] =&gt; Array
                          (
                              [index] =&gt; question_index
                              [shard] =&gt; 0
                              [reason] =&gt; BroadcastShardOperationFailedException[[question_index][0] ]; nested: ElasticsearchException[failed to execute suggest]; nested: ElasticsearchIllegalArgumentException[[suggest] does not support [field]]; 
                          )
  </code></pre>
  
  <p>Anyone know what could be the problem here? Are my indexes or the parameters I'm using setup incorrectly? </p>
  
  <p>Please note that I'm using the PHP client library and not accessing the API directly via HTTP. </p>