FieldValueFactor
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait FunctionScoreFunction[S]class Objecttrait Matchableclass AnyShow all
- Self type
Members list
Value members
Concrete methods
Sets the factor
parameter for the zio.elasticsearch.query.FieldValueFactor. Optional factor to multiply the field value with, defaults to 1.
Sets the factor
parameter for the zio.elasticsearch.query.FieldValueFactor. Optional factor to multiply the field value with, defaults to 1.
Value parameters
- value
-
a non-negative real number value for the
factor
parameter
Attributes
- Returns
-
an instance of zio.elasticsearch.query.FieldValueFactor enriched with the
factor
parameter.
Sets the filter
parameter for the zio.elasticsearch.query.FunctionScoreFunction.
Sets the filter
parameter for the zio.elasticsearch.query.FunctionScoreFunction.
Value parameters
- filter
-
the zio.elasticsearch.query.ElasticQuery used for filtering
Attributes
- Returns
-
an instance of zio.elasticsearch.query.FunctionScoreFunction that can be used in zio.elasticsearch.query.FunctionScoreQuery to be performed enriched with the
filter
parameter.
Sets the filter
parameter for the zio.elasticsearch.query.FunctionScoreFunction.
Sets the filter
parameter for the zio.elasticsearch.query.FunctionScoreFunction.
Type parameters
- S1
-
the type of query used in filter, requires implicit zio.schema.Schema in scope
Value parameters
- filter
-
the zio.elasticsearch.query.ElasticQuery used for filtering
Attributes
- Returns
-
an instance of zio.elasticsearch.query.FunctionScoreFunction that can be used in zio.elasticsearch.query.FunctionScoreQuery to be performed enriched with the
filter
parameter.
Sets the missing
parameter for the zio.elasticsearch.query.FieldValueFactor. Value used if the document does not have that field. The modifier and factor are still applied to it as though it were read from the document.
Sets the missing
parameter for the zio.elasticsearch.query.FieldValueFactor. Value used if the document does not have that field. The modifier and factor are still applied to it as though it were read from the document.
Value parameters
- value
-
a non-negative real number value for the
missing
parameter
Attributes
- Returns
-
an instance of zio.elasticsearch.query.FieldValueFactor enriched with the
missing
parameter.
Sets the modifier
parameter for the zio.elasticsearch.query.FieldValueFactor. Modifier to apply to the field value.
Sets the modifier
parameter for the zio.elasticsearch.query.FieldValueFactor. Modifier to apply to the field value.
Value parameters
- value
-
the zio.elasticsearch.query.FieldValueFactorFunctionModifier value for
modifier
parameter, it can be:- zio.elasticsearch.query.FieldValueFactorFunctionModifier.Ln
- zio.elasticsearch.query.FieldValueFactorFunctionModifier.Ln1p
- zio.elasticsearch.query.FieldValueFactorFunctionModifier.Ln2p
- zio.elasticsearch.query.FieldValueFactorFunctionModifier.Log
- zio.elasticsearch.query.FieldValueFactorFunctionModifier.Log1p
- zio.elasticsearch.query.FieldValueFactorFunctionModifier.Log2p
- zio.elasticsearch.query.FieldValueFactorFunctionModifier.None
- zio.elasticsearch.query.FieldValueFactorFunctionModifier.Reciprocal
- zio.elasticsearch.query.FieldValueFactorFunctionModifier.Sqrt
- zio.elasticsearch.query.FieldValueFactorFunctionModifier.Square
Attributes
- Returns
-
an instance of zio.elasticsearch.query.FieldValueFactor enriched with the
modifier
parameter.
Sets the weight
parameter for the zio.elasticsearch.query.FieldValueFactor. The weight score allows you to multiply the score by the provided weight
.
Sets the weight
parameter for the zio.elasticsearch.query.FieldValueFactor. The weight score allows you to multiply the score by the provided weight
.
Value parameters
- value
-
a non-negative real number value for the
weight
parameter
Attributes
- Returns
-
an instance of zio.elasticsearch.query.FieldValueFactor enriched with the
weight
parameter.