elasticsearch\Query addAggregate()

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

doc_Yii
2016-10-30 17:02:02
Comments
Leave a Comment

Please login to continue.