Enum elasticsearch_dsl::search::highlight::Order [−][src]
pub enum Order {
Score,
None,
}
Expand description
Sorts highlighted fragments by score when set to score
. By default,
fragments will be output in the order they appear in the field
(order: none
). Setting this option to score
will output
the most relevant fragments first. Each highlighter applies its own logic to compute
relevancy scores. See the document
How highlighters work internally
for more details how different highlighters find the best fragments.
Variants
Score
Sorts highlighted fragments by score.
None
Highlighted fragments will be output in the order they appear in the field.
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 Order
impl UnwindSafe for Order
Blanket Implementations
Mutably borrows from an owned value. Read more