Lines Matching defs:script
23 if ($this->hasParam('value') && isset($this->getParam('value')['script'])) {
24 throw new InvalidException('Weighted Average aggregation with a value mixing field and script is not possible.');
37 * Set the value as a script for this aggregation.
41 public function setValueScript(string $script)
44 throw new InvalidException('Weighted Average aggregation with a value mixing field and script is not possible.');
47 return $this->setParam('value', ['script' => $script]);
59 if ($this->hasParam('weight') && isset($this->getParam('weight')['script'])) {
60 throw new InvalidException('Weighted Average aggregation with a weight mixing field and script is not possible.');
73 * Set the weight as a script for this aggregation.
77 public function setWeightScript(string $script)
80 throw new InvalidException('Weighted Average aggregation with a weight mixing field and script is not possible.');
83 return $this->setParam('weight', ['script' => $script]);