Struct elasticsearch_dsl::search::sort::Sort [−][src]
pub struct Sort {
pub field: SortField,
pub order: Option<SortOrder>,
pub mode: Option<SortMode>,
pub unmapped_type: Option<String>,
pub missing: Option<SortMissing>,
}Expand description
Sorts search hits by other field values
Fields
field: SortFieldField to sort by
order: Option<SortOrder>Explicit order
https://www.elastic.co/guide/en/elasticsearch/reference/current/sort-search-results.html#_sort_order
mode: Option<SortMode>Sort mode for numeric fields
unmapped_type: Option<String>Fallback type if mapping is not defined
missing: Option<SortMissing>The missing parameter specifies how docs which are missing the sort field should be treated
Implementations
Sets unmapped type
Sets missing value
Trait Implementations
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Sort
impl UnwindSafe for Sort
Blanket Implementations
Mutably borrows from an owned value. Read more