Enum elasticsearch_dsl::search::queries::params::HasChildScoreMode
source · [−]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
sourceimpl Clone for HasChildScoreMode
impl Clone for HasChildScoreMode
sourcefn clone(&self) -> HasChildScoreMode
fn clone(&self) -> HasChildScoreMode
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 HasChildScoreMode
impl Debug for HasChildScoreMode
sourceimpl Serialize for HasChildScoreMode
impl Serialize for HasChildScoreMode
impl StructuralPartialEq for HasChildScoreMode
Auto Trait Implementations
impl RefUnwindSafe for HasChildScoreMode
impl Send for HasChildScoreMode
impl Sync for HasChildScoreMode
impl Unpin for HasChildScoreMode
impl UnwindSafe for HasChildScoreMode
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