pub enum FunctionScoreBoostMode {
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 FunctionScoreBoostMode
impl Clone for FunctionScoreBoostMode
sourcefn clone(&self) -> FunctionScoreBoostMode
fn clone(&self) -> FunctionScoreBoostMode
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 FunctionScoreBoostMode
impl Debug for FunctionScoreBoostMode
sourceimpl Default for FunctionScoreBoostMode
impl Default for FunctionScoreBoostMode
sourceimpl Ord for FunctionScoreBoostMode
impl Ord for FunctionScoreBoostMode
sourceimpl PartialOrd<FunctionScoreBoostMode> for FunctionScoreBoostMode
impl PartialOrd<FunctionScoreBoostMode> for FunctionScoreBoostMode
sourcefn partial_cmp(&self, other: &FunctionScoreBoostMode) -> Option<Ordering>
fn partial_cmp(&self, other: &FunctionScoreBoostMode) -> 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 FunctionScoreBoostMode
impl Serialize for FunctionScoreBoostMode
impl Copy for FunctionScoreBoostMode
impl Eq for FunctionScoreBoostMode
impl StructuralEq for FunctionScoreBoostMode
impl StructuralPartialEq for FunctionScoreBoostMode
Auto Trait Implementations
impl RefUnwindSafe for FunctionScoreBoostMode
impl Send for FunctionScoreBoostMode
impl Sync for FunctionScoreBoostMode
impl Unpin for FunctionScoreBoostMode
impl UnwindSafe for FunctionScoreBoostMode
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