Lines Matching refs:string
66 * @param string $functionType valid values are DECAY_* constants and script_score
74 string $functionType,
113 * TODO: Change "$origin" and "$scale" parameter types to allow "float|int|string".
115 * @param string $function see DECAY_* constants for valid options
116 * @param string $field the document field on which to perform the decay function
117 * @param string $origin the origin value for this decay function
118 * @param string $scale a scale to define the rate of decay for this function
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
123 * @param string|null $multiValueMode see MULTI_VALUE_MODE_* constants for valid options
128 string $function,
129 string $field,
130 string $origin,
131 string $scale,
132 ?string $offset = null,
136 ?string $multiValueMode = null
162 string $field,
164 ?string $modifier = null,
205 * @param string|null $field the field to be used for random number generation
213 ?string $field = null
249 * @param string $mode see BOOST_MODE_* constants for valid options. Default is multiply.
253 public function setBoostMode(string $mode = self::BOOST_MODE_MULTIPLY): self
278 * @param string $mode see SCORE_MODE_* constants for valid options. Default is multiply.
282 public function setScoreMode(string $mode = self::SCORE_MODE_MULTIPLY): self