PHP Class Elastica\Aggregation\Terms

Inheritance: extends AbstractTermsAggregation
Show file Open project: ruflin/elastica Class Usage Examples

Public Methods

Method Description
setOrder ( string $order, string $direction ) Set the bucket sort order.

Method Details

setOrder() public method

Set the bucket sort order.
public setOrder ( string $order, string $direction )
$order string "_count", "_term", or the name of a sub-aggregation or sub-aggregation response field
$direction string "asc" or "desc"