Lines Matching refs:filter
68 * @param AbstractQuery|null $filter filter to apply to the function
76 ?AbstractQuery $filter = null,
83 if (null !== $filter) {
84 $function['filter'] = $filter;
100 * @param AbstractQuery|null $filter an optional filter to apply to the function
105 public function addScriptScoreFunction(AbstractScript $script, ?AbstractQuery $filter = null, ?float $weight = null)
107 return $this->addFunction('script_score', $script, $filter, $weight);
122 * @param AbstractQuery|null $filter a filter associated with this function
135 ?AbstractQuery $filter = null,
155 return $this->addFunction($function, $functionParams, $filter, $weight);
167 ?AbstractQuery $filter = null
185 return $this->addFunction('field_value_factor', $functionParams, $filter, $weight);
190 * @param AbstractQuery|null $filter a filter associated with this function
194 public function addWeightFunction(float $weight, ?AbstractQuery $filter = null): self
196 return $this->addFunction('weight', $weight, $filter);
203 * @param AbstractQuery|null $filter a filter associated with this function
211 ?AbstractQuery $filter = null,
223 return $this->addFunction('random_score', $functionParams, $filter, $weight);