1f336ecc62480c1d56351cc2f82d0d08.asciidoc 250 B

12345678910111213
  1. // docs/index_.asciidoc:440
  2. [source, php]
  3. ----
  4. $params = [
  5. 'index' => 'twitter',
  6. 'id' => '1',
  7. 'body' => [
  8. 'message' => 'elasticsearch now has versioning support, double cool!',
  9. ],
  10. ];
  11. $response = $client->index($params);
  12. ----