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