The Field-based SelectionTermAggregation aggregates search results by the value of the Selection Field.
name- name of the Aggregation object
contentTypeIdentifier- string representing the Content Type identifier
fieldDefinitionIdentifier- string representing the Field identifier
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