Enum elasticsearch_dsl::search::queries::params::FunctionScoreMode
source · [−]pub enum FunctionScoreMode {
Multiply,
Sum,
Avg,
First,
Max,
Min,
}
Expand description
Each document is scored by the defined functions. The parameter score_mode
specifies how
the computed scores are combined
Variants
Multiply
Scores are multiplied (default)
Sum
Scores are summed
Avg
Scores are averaged
First
The first function that has a matching filter is applied
Max
Maximum score is used
Min
Minimum score is used
Trait Implementations
sourceimpl Clone for FunctionScoreMode
impl Clone for FunctionScoreMode
sourcefn clone(&self) -> FunctionScoreMode
fn clone(&self) -> FunctionScoreMode
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 FunctionScoreMode
impl Debug for FunctionScoreMode
sourceimpl Default for FunctionScoreMode
impl Default for FunctionScoreMode
sourceimpl Ord for FunctionScoreMode
impl Ord for FunctionScoreMode
sourceimpl PartialOrd<FunctionScoreMode> for FunctionScoreMode
impl PartialOrd<FunctionScoreMode> for FunctionScoreMode
sourcefn partial_cmp(&self, other: &FunctionScoreMode) -> Option<Ordering>
fn partial_cmp(&self, other: &FunctionScoreMode) -> 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 FunctionScoreMode
impl Serialize for FunctionScoreMode
impl Copy for FunctionScoreMode
impl Eq for FunctionScoreMode
impl StructuralEq for FunctionScoreMode
impl StructuralPartialEq for FunctionScoreMode
Auto Trait Implementations
impl RefUnwindSafe for FunctionScoreMode
impl Send for FunctionScoreMode
impl Sync for FunctionScoreMode
impl Unpin for FunctionScoreMode
impl UnwindSafe for FunctionScoreMode
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