Elastica\Aggregation\GeoCentroid::setField PHP Method

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
    public function setField($field)
    {
        return $this->setParam('field', $field);
    }