Elastica\Aggregation\AbstractTermsAggregation::setShardSize PHP Method

setShardSize() public method

Sets how many terms the coordinating node will request from each shard.
public setShardSize ( integer $shard_size )
$shard_size integer The amount of terms to be returned.
    public function setShardSize($shard_size)
    {
        return $this->setParam('shard_size', $shard_size);
    }