38c1d0f6668e9563c0827f839f9fa505.asciidoc 233 B

123456789101112131415
  1. // docs/update.asciidoc:218
  2. [source, php]
  3. ----
  4. $params = [
  5. 'index' => 'test',
  6. 'id' => '1',
  7. 'body' => [
  8. 'doc' => [
  9. 'name' => 'new_name',
  10. ],
  11. ],
  12. ];
  13. $response = $client->update($params);
  14. ----