Enum elasticsearch_dsl::search::highlight::Order
source · 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§
source§impl Ord for Order
impl Ord for Order
source§impl PartialOrd<Order> for Order
impl PartialOrd<Order> for Order
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more