pub enum NestedQueryScoreMode {
Average,
Maximum,
Minimum,
None,
Sum,
}
Expand description
Indicates how scores for matching child objects affect the root parent document’s relevance score.
Variants
Average
Use the mean relevance score of all matching child objects.
Maximum
Uses the highest relevance score of all matching child objects.
Minimum
Uses the lowest relevance score of all matching child objects.
None
Do not use the relevance scores of matching child objects. The query
assigns parent documents a score of 0
.
Sum
Add together the relevance scores of all matching child objects.
Trait Implementations
sourceimpl Clone for NestedQueryScoreMode
impl Clone for NestedQueryScoreMode
sourcefn clone(&self) -> NestedQueryScoreMode
fn clone(&self) -> NestedQueryScoreMode
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 NestedQueryScoreMode
impl Debug for NestedQueryScoreMode
sourceimpl Serialize for NestedQueryScoreMode
impl Serialize for NestedQueryScoreMode
impl StructuralPartialEq for NestedQueryScoreMode
Auto Trait Implementations
impl RefUnwindSafe for NestedQueryScoreMode
impl Send for NestedQueryScoreMode
impl Sync for NestedQueryScoreMode
impl Unpin for NestedQueryScoreMode
impl UnwindSafe for NestedQueryScoreMode
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