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
Id
Sort by _id
field
Score
Sort by _score
Key
Sort by key within aggregations
Count
Sort by count within aggregations,
Doc
Sort by index order
Field(String)
Tuple Fields
0: String
Sorts by a given field name
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SortField
impl UnwindSafe for SortField
Blanket Implementations
Mutably borrows from an owned value. Read more