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

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