The SubtreeTermAggregation aggregates search results by the Location's subtree path.
name- name of the Aggregation object
pathString- string representing the pathstring to aggregate results by
You can define additional limits to the results using the
The following example limits the number of terms returned to 5 and only considers terms that have 10 or more results:
1 2 3