elasticsearch_dsl/search/highlight/
fragmenter.rs

1/// Specifies how text should be broken up in highlight snippets.
2#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Serialize)]
3#[serde(rename_all = "snake_case")]
4pub enum Fragmenter {
5    /// Breaks up text into same-sized fragments.
6    Simple,
7
8    /// Breaks up text into same-sized fragments, but tries to avoid breaking up text between
9    /// highlighted terms. This is helpful when you’re querying for phrases. Default.
10    Span,
11}