Lines Matching defs:script
10 * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-bucket-script-aggregation.html
16 public function __construct(string $name, ?array $bucketsPath = null, ?string $script = null)
28 if (null !== $script) {
29 $this->setScript($script);
48 * Set the script for this aggregation.
52 public function setScript(string $script): self
54 return $this->setParam('script', $script);
68 * @throws InvalidException If buckets path or script is not set
75 if (!$this->hasParam('script')) {