elasticsearch_dsl/search/queries/params/
has_child_query.rs

1/// Indicates how scores for matching child documents affect the root parent document’s relevance
2/// score.
3#[derive(Debug, Clone, PartialEq, Eq, Serialize)]
4#[serde(rename_all = "snake_case")]
5pub enum HasChildScoreMode {
6    /// Do not use the relevance scores of matching child documents. The query assigns parent
7    /// documents a score of 0.
8    None,
9
10    /// Use the mean relevance score of all matching child documents.
11    Avg,
12
13    /// Uses the highest relevance score of all matching child documents.
14    Max,
15
16    /// Uses the lowest relevance score of all matching child documents.
17    Min,
18
19    ///Add together the relevance scores of all matching child documents.
20    Sum,
21}