Enum elasticsearch_dsl::search::sort::SortField [−][src]
pub enum SortField {
Id,
Score,
Key,
Count,
Doc,
Field(String),
}Expand description
Allows you to add one or more sorts on specific fields. Each sort can be reversed as well. The sort is defined on a per field level.
Variants
Sort by _id field
Sort by _score
Sort by key within aggregations
Sort by count within aggregations,
Sort by index order
Field(String)Sorts by a given field name
Tuple Fields of Field
0: StringTrait 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 SortField
impl UnwindSafe for SortField
Blanket Implementations
Mutably borrows from an owned value. Read more