1// docs/update.asciidoc:84 2 3[source, php] 4---- 5$params = [ 6 'index' => 'test', 7 'id' => '1', 8 'body' => [ 9 'counter' => 1, 10 'tags' => [ 11 'red', 12 ], 13 ], 14]; 15$response = $client->index($params); 16---- 17