__construct() __construct(string $name, string|null $bucketsPath = null) Parameters string $name string|null $bucketsPath
setBucketsPath() setBucketsPath(string $bucketsPath) : $this Set the buckets_path for this aggregation. Parameters string $bucketsPath Returns $this
setGapPolicy() setGapPolicy(string $gapPolicy) : $this Set the gap policy for this aggregation. Parameters string $gapPolicy Returns $this
setFormat() setFormat(string|null $format = null) : $this Set the format for this aggregation. Parameters string|null $format Returns $this
toArray() toArray() : array Throws \Elastica\Exception\InvalidException If buckets path or script is not set Returns array