pub enum HasChildScoreMode {
None,
Avg,
Max,
Min,
Sum,
}
Expand description
Indicates how scores for matching child documents affect the root parent document’s relevance score.
Variants§
None
Do not use the relevance scores of matching child documents. The query assigns parent documents a score of 0.
Avg
Use the mean relevance score of all matching child documents.
Max
Uses the highest relevance score of all matching child documents.
Min
Uses the lowest relevance score of all matching child documents.
Sum
Add together the relevance scores of all matching child documents.
Trait Implementations§
Source§impl Clone for HasChildScoreMode
impl Clone for HasChildScoreMode
Source§fn clone(&self) -> HasChildScoreMode
fn clone(&self) -> HasChildScoreMode
Returns a duplicate 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 HasChildScoreMode
impl Debug for HasChildScoreMode
Source§impl PartialEq for HasChildScoreMode
impl PartialEq for HasChildScoreMode
Source§impl Serialize for HasChildScoreMode
impl Serialize for HasChildScoreMode
impl Eq for HasChildScoreMode
impl StructuralPartialEq for HasChildScoreMode
Auto Trait Implementations§
impl Freeze for HasChildScoreMode
impl RefUnwindSafe for HasChildScoreMode
impl Send for HasChildScoreMode
impl Sync for HasChildScoreMode
impl Unpin for HasChildScoreMode
impl UnwindSafe for HasChildScoreMode
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