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