$_name
$_name : string
Class TopHits.
This function can be used to handle params for queries, filter
addAggregation(\Elastica\Aggregation\AbstractAggregation  $aggregation) : $this
                Add a sub-aggregation.
| \Elastica\Aggregation\AbstractAggregation | $aggregation | 
setScriptFields(array|\Elastica\Script\ScriptFields  $scriptFields) : $this
                Set script fields.
| array|\Elastica\Script\ScriptFields | $scriptFields | 
addScriptField(string $name, \Elastica\Script\AbstractScript $script) : $this
Adds a Script to the aggregation.
| string | $name | |
| \Elastica\Script\AbstractScript | $script |