addAgg() public method
| public $this addAgg ( $name, $type, $options ) | ||
|---|---|---|
| $name | string | 
 The name of the aggregation  |  
| $type | string | 
 The aggregation type. e.g.   |  
| $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.