Enum elasticsearch_dsl::search::queries::params::FieldValueFactorModifier [−][src]
pub enum FieldValueFactorModifier {
None,
Log,
Log1P,
Log2P,
Ln,
Ln1P,
Ln2P,
Square,
Sqrt,
Reciprocal,
}Expand description
Modifier to apply to the field value
Defaults to none
Variants
Do not apply any multiplier to the field value
Take the common logarithm of the field value
Because this function will return a negative value and cause an error if used on values
between 0 and 1, it is recommended to use log1p
instead.
Add 1 to the field value and take the common logarithm
Add 2 to the field value and take the common logarithm
Take the natural logarithm of the field value.
Because this function will return a negative value and cause an error if used on values
between 0 and 1, it is recommended to use ln1p
instead.
Add 1 to the field value and take the natural logarithm
Add 2 to the field value and take the natural logarithm
Square the field value (multiply it by itself)
Take the square root of the field value
Reciprocate the field value, same
as 1/x where x is the field’s value
Trait Implementations
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for FieldValueFactorModifier
impl Send for FieldValueFactorModifier
impl Sync for FieldValueFactorModifier
impl Unpin for FieldValueFactorModifier
impl UnwindSafe for FieldValueFactorModifier
Blanket Implementations
Mutably borrows from an owned value. Read more