0989cc65d8924f666ce3eb0820d2d244.asciidoc 315 B

12345678910111213141516171819
  1. // indices/put-mapping.asciidoc:435
  2. [source, php]
  3. ----
  4. $params = [
  5. 'index' => 'users',
  6. 'body' => [
  7. 'user_id' => 12345,
  8. ],
  9. ];
  10. $response = $client->index($params);
  11. $params = [
  12. 'index' => 'users',
  13. 'body' => [
  14. 'user_id' => 12346,
  15. ],
  16. ];
  17. $response = $client->index($params);
  18. ----