opensearch-dsl 0.3.1

Strongly typed OpenSearch DSL
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// The `missing` parameter specifies how docs which are missing the sort field
/// should be treated:
///
/// The `missing` value can be set to `_last`, `_first`, or a custom value (that
/// will be used for missing docs as the sort value). The default is `_last`.
///
/// <https://www.elastic.co/guide/en/opensearch/reference/current/sort-search-results.html#_missing_values>
#[derive(Debug, Clone, Copy, PartialEq, Eq, Deserialize, Serialize)]
pub enum SortMissing {
    /// Sorts missing fields first
    #[serde(rename = "_first")]
    First,

    /// Sorts missing field last
    #[serde(rename = "_last")]
    Last,
}