1// indices/put-mapping.asciidoc:109 2 3[source, php] 4---- 5$params = [ 6 'index' => 'twitter-1', 7]; 8$response = $client->indices()->create($params); 9$params = [ 10 'index' => 'twitter-2', 11]; 12$response = $client->indices()->create($params); 13$params = [ 14 'index' => 'twitter-1,twitter-2', 15 'body' => [ 16 'properties' => [ 17 'user_name' => [ 18 'type' => 'text', 19 ], 20 ], 21 ], 22]; 23$response = $client->indices()->putMapping($params); 24---- 25