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

[source, php]
----
$params = [
    'body' => [
        'aggs' => [
            'tags' => [
                'terms' => [
                    'field' => 'tags',
                    'missing' => 'N/A',
                ],
            ],
        ],
    ],
];
$response = $client->search($params);
----
