setField() setField(string $field) : $this Set the field for this aggregation. Parameters string $field the name of the document field on which to perform this aggregation Returns $this
setScript() setScript(string|\Elastica\Script\AbstractScript $script) : $this Set a script for this aggregation. Parameters string|\Elastica\Script\AbstractScript $script Returns $this