Lines Matching refs:this
15 * Set the value for this aggregation.
19 * @return $this
23 if ($this->hasParam('value') && isset($this->getParam('value')['script'])) {
33 return $this->setParam('value', $value);
37 * Set the value as a script for this aggregation.
39 * @return $this
43 if ($this->hasParam('value') && isset($this->getParam('value')['field'])) {
47 return $this->setParam('value', ['script' => $script]);
51 * Set the weight for this aggregation.
55 * @return $this
59 if ($this->hasParam('weight') && isset($this->getParam('weight')['script'])) {
69 return $this->setParam('weight', $weight);
73 * Set the weight as a script for this aggregation.
75 * @return $this
79 if ($this->hasParam('weight') && isset($this->getParam('weight')['field'])) {
83 return $this->setParam('weight', ['script' => $script]);
87 * Set the format for this aggregation.
91 * @return $this
95 return $this->setParam('format', $format);
99 * Set the value_type for this aggregation.
103 * @return $this
107 return $this->setParam('value_type', $valueType);