Enum elasticsearch_dsl::search::queries::params::FunctionBoostMode
source · [−]pub enum FunctionBoostMode {
Multiply,
Replace,
Sum,
Avg,
Max,
Min,
}
Expand description
The newly computed score is combined with the score of the query. The parameter
boost_mode
defines how.
Variants
Multiply
Query score and function score is multiplied (default)
Replace
Only function score is used, the query score is ignored
Sum
Query score and function score are added
Avg
Average
Max
Max of query score and function score
Min
Min of query score and function score
Trait Implementations
sourceimpl Clone for FunctionBoostMode
impl Clone for FunctionBoostMode
sourcefn clone(&self) -> FunctionBoostMode
fn clone(&self) -> FunctionBoostMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FunctionBoostMode
impl Debug for FunctionBoostMode
sourceimpl Default for FunctionBoostMode
impl Default for FunctionBoostMode
sourceimpl Ord for FunctionBoostMode
impl Ord for FunctionBoostMode
sourceimpl PartialOrd<FunctionBoostMode> for FunctionBoostMode
impl PartialOrd<FunctionBoostMode> for FunctionBoostMode
sourcefn partial_cmp(&self, other: &FunctionBoostMode) -> Option<Ordering>
fn partial_cmp(&self, other: &FunctionBoostMode) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Serialize for FunctionBoostMode
impl Serialize for FunctionBoostMode
impl Copy for FunctionBoostMode
impl Eq for FunctionBoostMode
impl StructuralEq for FunctionBoostMode
impl StructuralPartialEq for FunctionBoostMode
Auto Trait Implementations
impl RefUnwindSafe for FunctionBoostMode
impl Send for FunctionBoostMode
impl Sync for FunctionBoostMode
impl Unpin for FunctionBoostMode
impl UnwindSafe for FunctionBoostMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more