diff --git a/src/Aggregation/GeoHashGridAggregation.php b/src/Aggregation/GeoHashGridAggregation.php index f85144ee11ae546ea9b59f67e5295326d9ca0f30..875333d33cb2225e2b02588067ca56f80211b55d 100644 --- a/src/Aggregation/GeoHashGridAggregation.php +++ b/src/Aggregation/GeoHashGridAggregation.php @@ -35,6 +35,25 @@ class GeoHashGridAggregation extends AbstractAggregation */ private $shardSize; + /** + * Inner aggregations container init. + * + * @param string $name + * @param string $field + * @param int $precision + * @param int $size + * @param int $shardSize + */ + public function __construct($name, $field = null, $precision = null, $size = null, $shardSize = null) + { + parent::__construct($name); + + $this->setField($field); + $this->setPrecision($precision); + $this->setSize($size); + $this->setShardSize($shardSize); + } + /** * @return int */