addAgg() public method
See also http://www.elastic.co/guide/en/elasticsearch/reference/1.x/search-aggregations.html.
public $this addAgg ( $name, $type, $options )$name string
The name of the aggregation $type string
The aggregation type. e.g. terms, range, histogram... $options
string|array
The configuration options for this aggregation. Can be an array or a json string. return $this
The query object itself