12345678910111213141516171819 |
- // indices/put-mapping.asciidoc:435
- [source, php]
- ----
- $params = [
- 'index' => 'users',
- 'body' => [
- 'user_id' => 12345,
- ],
- ];
- $response = $client->index($params);
- $params = [
- 'index' => 'users',
- 'body' => [
- 'user_id' => 12346,
- ],
- ];
- $response = $client->index($params);
- ----
|