// indices/put-mapping.asciidoc:13

[source, php]
----
$params = [
    'index' => 'twitter',
    'body' => [
        'properties' => [
            'email' => [
                'type' => 'keyword',
            ],
        ],
    ],
];
$response = $client->indices()->putMapping($params);
----
