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§
source§impl Clone for HasChildScoreMode
impl Clone for HasChildScoreMode
source§fn clone(&self) -> HasChildScoreMode
fn clone(&self) -> HasChildScoreMode
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 HasChildScoreMode
impl Debug for HasChildScoreMode
source§impl PartialEq for HasChildScoreMode
impl PartialEq for HasChildScoreMode
source§fn eq(&self, other: &HasChildScoreMode) -> bool
fn eq(&self, other: &HasChildScoreMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for HasChildScoreMode
impl Serialize for HasChildScoreMode
impl Eq for HasChildScoreMode
impl StructuralEq 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§
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