pub enum BoostMode {
Multiply,
Replace,
Sum,
Avg,
Max,
Min,
}Expand description
How a function_score’s combined function score merges with the query score.
Variants§
Multiply
Multiply (default).
Replace
Replace the query score entirely.
Sum
Sum them.
Avg
Average them.
Max
Take the largest.
Min
Take the smallest.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BoostMode
impl RefUnwindSafe for BoostMode
impl Send for BoostMode
impl Sync for BoostMode
impl Unpin for BoostMode
impl UnsafeUnpin for BoostMode
impl UnwindSafe for BoostMode
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