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§
Source§impl Clone for NestedQueryScoreMode
impl Clone for NestedQueryScoreMode
Source§fn clone(&self) -> NestedQueryScoreMode
fn clone(&self) -> NestedQueryScoreMode
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 NestedQueryScoreMode
impl Debug for NestedQueryScoreMode
Source§impl PartialEq for NestedQueryScoreMode
impl PartialEq for NestedQueryScoreMode
Source§impl Serialize for NestedQueryScoreMode
impl Serialize for NestedQueryScoreMode
impl Eq for NestedQueryScoreMode
impl StructuralPartialEq for NestedQueryScoreMode
Auto Trait Implementations§
impl Freeze for NestedQueryScoreMode
impl RefUnwindSafe for NestedQueryScoreMode
impl Send for NestedQueryScoreMode
impl Sync for NestedQueryScoreMode
impl Unpin for NestedQueryScoreMode
impl UnwindSafe for NestedQueryScoreMode
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