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§
Source§impl Clone for FunctionBoostMode
impl Clone for FunctionBoostMode
Source§fn clone(&self) -> FunctionBoostMode
fn clone(&self) -> FunctionBoostMode
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 FunctionBoostMode
impl Debug for FunctionBoostMode
Source§impl Default for FunctionBoostMode
impl Default for FunctionBoostMode
Source§impl Ord for FunctionBoostMode
impl Ord for FunctionBoostMode
Source§fn cmp(&self, other: &FunctionBoostMode) -> Ordering
fn cmp(&self, other: &FunctionBoostMode) -> 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 for FunctionBoostMode
impl PartialEq for FunctionBoostMode
Source§impl PartialOrd for FunctionBoostMode
impl PartialOrd for FunctionBoostMode
Source§impl Serialize for FunctionBoostMode
impl Serialize for FunctionBoostMode
impl Copy for FunctionBoostMode
impl Eq for FunctionBoostMode
impl StructuralPartialEq for FunctionBoostMode
Auto Trait Implementations§
impl Freeze for FunctionBoostMode
impl RefUnwindSafe for FunctionBoostMode
impl Send for FunctionBoostMode
impl Sync for FunctionBoostMode
impl Unpin for FunctionBoostMode
impl UnwindSafe for FunctionBoostMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more