Skip to content

SubtreeTermAggregation

The SubtreeTermAggregation aggregates search results by the Location's subtree path.

Arguments

  • name - name of the Aggregation object
  • pathString - string representing the pathstring to aggregate results by

Example

1
2
$query = new Query();
$query->aggregations[] = new Aggregation\Location\SubtreeTermAggregation('pathstring', '/1/2/');