elasticsearch_dsl/search/sort/
sort_missing.rs

1/// The `missing` parameter specifies how docs which are missing the sort field should be treated:
2///
3/// 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`.
4///
5/// <https://www.elastic.co/guide/en/elasticsearch/reference/current/sort-search-results.html#_missing_values>
6#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize)]
7pub enum SortMissing {
8    /// Sorts missing fields first
9    #[serde(rename = "_first")]
10    First,
11
12    /// Sorts missing field last
13    #[serde(rename = "_last")]
14    Last,
15}