elasticsearch_dsl/search/queries/params/nested_query.rs
1/// Indicates how scores for matching child objects affect the root parent
2/// document’s
3/// [relevance score](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-filter-context.html#relevance-scores).
4#[derive(Debug, Clone, PartialEq, Eq, Serialize)]
5pub enum NestedQueryScoreMode {
6 /// Use the mean relevance score of all matching child objects.
7 #[serde(rename = "avg")]
8 Average,
9
10 /// Uses the highest relevance score of all matching child objects.
11 #[serde(rename = "max")]
12 Maximum,
13
14 /// Uses the lowest relevance score of all matching child objects.
15 #[serde(rename = "min")]
16 Minimum,
17
18 /// Do not use the relevance scores of matching child objects. The query
19 /// assigns parent documents a score of `0`.
20 #[serde(rename = "none")]
21 None,
22
23 /// Add together the relevance scores of all matching child objects.
24 #[serde(rename = "sum")]
25 Sum,
26}