Lines Matching refs:null

68      * @param AbstractQuery|null         $filter         filter to apply to the function
69 * @param float|null $weight function weight
76 ?AbstractQuery $filter = null,
77 ?float $weight = null
83 if (null !== $filter) {
87 if (null !== $weight) {
100 * @param AbstractQuery|null $filter an optional filter to apply to the function
101 * @param float|null $weight the weight of the function
105 public function addScriptScoreFunction(AbstractScript $script, ?AbstractQuery $filter = null, ?float $weight = null)
119 * @param string|null $offset If defined, this function will only be computed for documents with a distance from the origin greater than this value
120 * @param float|null $decay optionally defines how documents are scored at the distance given by the $scale parameter
121 * @param float|null $weight optional factor by which to multiply the score at the value provided by the $scale parameter
122 * @param AbstractQuery|null $filter a filter associated with this function
123 * @param string|null $multiValueMode see MULTI_VALUE_MODE_* constants for valid options
132 ?string $offset = null,
133 ?float $decay = null,
134 ?float $weight = null,
135 ?AbstractQuery $filter = null,
136 ?string $multiValueMode = null
144 if (null !== $offset) {
147 if (null !== $decay) {
151 if (null !== $multiValueMode) {
163 ?float $factor = null,
164 ?string $modifier = null,
165 ?float $missing = null,
166 ?float $weight = null,
167 ?AbstractQuery $filter = null
173 if (null !== $factor) {
177 if (null !== $modifier) {
181 if (null !== $missing) {
190 * @param AbstractQuery|null $filter a filter associated with this function
194 public function addWeightFunction(float $weight, ?AbstractQuery $filter = null): self
203 * @param AbstractQuery|null $filter a filter associated with this function
204 * @param float|null $weight an optional boost value associated with this function
205 * @param string|null $field the field to be used for random number generation
211 ?AbstractQuery $filter = null,
212 ?float $weight = null,
213 ?string $field = null
219 if (null !== $field) {
261 * @param int|null $seed set a seed value to return results in the same random order for consistent pagination
265 public function setRandomScore(?int $seed = null): self
268 if (null !== $seed) {