1// indices/put-mapping.asciidoc:92 2 3[source, php] 4---- 5$params = [ 6 'index' => 'publications', 7 'body' => [ 8 'properties' => [ 9 'title' => [ 10 'type' => 'text', 11 ], 12 ], 13 ], 14]; 15$response = $client->indices()->putMapping($params); 16---- 17