title: Elasticseach doesn't map all given fields [PHP]
body: <p>I'm working with Elasticsearch-PHP client. I want to index my datas, but I have a problem with mapping. There is a problem: I create my data array, everything works fine, but when I add this array to my index <code>body =&gt; my_data_array</code> some datas show up, but not all of them. I don't know why. I just digged and try all of following steps but nothing changed. </p>
  
  <p>I just attached my snippets.</p>
  
  <p>This my <code>controller</code> file where I index datas: </p>
  
  <pre><code>    {
  
      $params = ['body' =&gt; []];
  
      foreach($all_ads as $key =&gt; $ads){
  
          $params['body'][] = [
              'index' =&gt; [
                  '_index' =&gt; 'demo_data',
                  '_type' =&gt; 'demo',
                  '_id' =&gt; $ads-&gt;id
              ]
          ];
  
          $params['body'][] = $ads-&gt;indexParams();
  
      }
  
      $responses = $client-&gt;bulk($params);
  </code></pre>
  
  <hr>
  
  <p>this is result json object:</p>
  
  <pre><code>"response": [
      {
        "id": 85345,
        "old_id": "5088063",
        "user_id": "2706",
        "category_id": "15",
        "type": "3",
        "title": array[3],
        "slug": "",
        "sub_region_id": "8",
        "condition": "1",
        "username": "John Doe",
        "price": "82000",
        "price_type": "1",
        "no_phone": "0",
        "views": "29",
        "hot": "0",
        "vip": "0",
        "price_measure": "0"
     }
  </code></pre>
  
  <p>I have a <code>data</code>field and it is not visible here.
  Its <code>data</code> mapping structure </p>
  
  <pre><code>'data'          =&gt; [
      'type' =&gt; 'object',
      'properties' =&gt; [
          'key_id'   =&gt; ['type' =&gt; 'integer'],
          'value_id' =&gt; ['type' =&gt; 'integer'],
          'key'      =&gt; ['type' =&gt; 'keyword'],
          'value'    =&gt; ['type' =&gt; 'keyword']
      ]
  ]
  </code></pre>
  
  <p>How can I fix it?</p>
  
  <p>I just check some question from here and github issue forum but nothing helps. Thanks! </p>