1// docs/reindex.asciidoc:687 2 3[source, php] 4---- 5$params = [ 6 'index' => 'test', 7 'id' => '1', 8 'body' => [ 9 'text' => 'words words', 10 'flag' => 'foo', 11 ], 12]; 13$response = $client->index($params); 14---- 15