addAggregate() public method
Adds an aggregation to this query. Supports nested aggregations.
See also https://www.elastic.co/guide/en/elasticsearch/reference/2.3/search-aggregations.html.
public $this addAggregate ( $name, $options ) | ||
---|---|---|
$name | string |
The name of the aggregation |
$options | string|array |
The configuration options for this aggregation. Can be an array or a json string. |
return | $this |
The query object itself |
Please login to continue.