elasticsearch_dsl/search/params/
score_mode.rs

1/// The way the scores are combined can be controlled
2#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize)]
3#[serde(rename_all = "snake_case")]
4pub enum ScoreMode {
5    /// Add the original score and the rescore query score.
6    Total,
7
8    /// Multiply the original score by the rescore query score.
9    Multiply,
10
11    /// Take the min of the original score and the rescore query score.
12    Min,
13
14    /// Take the max of original score and the rescore query score.
15    Max,
16
17    /// Average the original score and the rescore query score.
18    Avg,
19}