pub enum NestedScoreMode {
Avg,
Sum,
Min,
Max,
None,
}Expand description
How a nested query’s matching-element scores combine into the parent score.
Distinct from ScoreMode: no multiply/first, plus None (the nested
clause acts as a pure filter, contributing no score).
Variants§
Avg
Average the element scores (default).
Sum
Sum them.
Min
Take the smallest.
Max
Take the largest.
None
Don’t contribute to the parent score (filter only).
Trait Implementations§
Source§impl Clone for NestedScoreMode
impl Clone for NestedScoreMode
Source§fn clone(&self) -> NestedScoreMode
fn clone(&self) -> NestedScoreMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NestedScoreMode
Auto Trait Implementations§
impl Freeze for NestedScoreMode
impl RefUnwindSafe for NestedScoreMode
impl Send for NestedScoreMode
impl Sync for NestedScoreMode
impl Unpin for NestedScoreMode
impl UnsafeUnpin for NestedScoreMode
impl UnwindSafe for NestedScoreMode
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