Lines Matching defs:weight
69 * @param float|null $weight function weight
77 ?float $weight = null
87 if (null !== $weight) {
88 $function['weight'] = $weight;
101 * @param float|null $weight the weight of the function
105 public function addScriptScoreFunction(AbstractScript $script, ?AbstractQuery $filter = null, ?float $weight = null)
107 return $this->addFunction('script_score', $script, $filter, $weight);
121 * @param float|null $weight optional factor by which to multiply the score at the value provided by the $scale parameter
134 ?float $weight = null,
155 return $this->addFunction($function, $functionParams, $filter, $weight);
166 ?float $weight = null,
185 return $this->addFunction('field_value_factor', $functionParams, $filter, $weight);
189 * @param float $weight the weight of the function
194 public function addWeightFunction(float $weight, ?AbstractQuery $filter = null): self
196 return $this->addFunction('weight', $weight, $filter);
204 * @param float|null $weight an optional boost value associated with this function
212 ?float $weight = null,
223 return $this->addFunction('random_score', $functionParams, $filter, $weight);