Skip to content

RawTermAggregation

The RawTermAggregation aggregates search results by the value of the selected search index field.

Arguments

  • name - name of the Aggregation object
  • field - string representing the search index field

Example

1
2
$query = new Query();
$query->aggregations[] = new Aggregation\RawTermAggregation('content_per_content_type', 'content_type_id_id');