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

[source, php]
----
$params = [
    'body' => [
        'aggs' => [
            'JapaneseCars' => [
                'terms' => [
                    'field' => 'make',
                    'include' => [
                        'mazda',
                        'honda',
                    ],
                ],
            ],
            'ActiveCarManufacturers' => [
                'terms' => [
                    'field' => 'make',
                    'exclude' => [
                        'rover',
                        'jensen',
                    ],
                ],
            ],
        ],
    ],
];
$response = $client->search($params);
----
