PHP Class Elastica\Aggregation\AbstractSimpleAggregation

Inheritance: extends AbstractAggregation
Mostra file Open project: ruflin/elastica

Public Methods

Method Description
setField ( string $field ) Set the field for this aggregation.
setScript ( string | Elastica\Script\AbstractScript $script ) Set a script for this aggregation.
toArray ( )

Method Details

setField() public method

Set the field for this aggregation.
public setField ( string $field )
$field string the name of the document field on which to perform this aggregation

setScript() public method

Set a script for this aggregation.
public setScript ( string | Elastica\Script\AbstractScript $script )
$script string | Elastica\Script\AbstractScript

toArray() public method

public toArray ( )