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§
source§impl Clone for FunctionScoreMode
impl Clone for FunctionScoreMode
source§fn clone(&self) -> FunctionScoreMode
fn clone(&self) -> FunctionScoreMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FunctionScoreMode
impl Debug for FunctionScoreMode
source§impl Default for FunctionScoreMode
impl Default for FunctionScoreMode
source§impl Ord for FunctionScoreMode
impl Ord for FunctionScoreMode
source§fn cmp(&self, other: &FunctionScoreMode) -> Ordering
fn cmp(&self, other: &FunctionScoreMode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<FunctionScoreMode> for FunctionScoreMode
impl PartialEq<FunctionScoreMode> for FunctionScoreMode
source§fn eq(&self, other: &FunctionScoreMode) -> bool
fn eq(&self, other: &FunctionScoreMode) -> bool
source§impl PartialOrd<FunctionScoreMode> for FunctionScoreMode
impl PartialOrd<FunctionScoreMode> for FunctionScoreMode
source§fn partial_cmp(&self, other: &FunctionScoreMode) -> Option<Ordering>
fn partial_cmp(&self, other: &FunctionScoreMode) -> Option<Ordering>
1.0.0 · source§fn 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