Skip to content

ContentTypeTermAggregation

The ContentTypeTermAggregation aggregates search results by the Content item's Content Type.

Arguments

  • name - name of the Aggregation object

Example

1
2
$query = new Query();
$query->aggregations[] = new Aggregation\ContentTypeTermAggregation('content_type');