// aggregations/bucket/terms-aggregation.asciidoc:723

[source, php]
----
$params = [
    'body' => [
        'aggs' => [
            'tags' => [
                'terms' => [
                    'field' => 'tags',
                    'execution_hint' => 'map',
                ],
            ],
        ],
    ],
];
$response = $client->search($params);
----
