1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
/// Specifies how text should be broken up in highlight snippets.
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Serialize)]
#[serde(untagged, rename_all = "lowercase")]
pub enum Fragmenter {
    /// Breaks up text into same-sized fragments.
    Simple,

    /// Breaks up text into same-sized fragments, but tries to avoid breaking up text between
    /// highlighted terms. This is helpful when you’re querying for phrases. Default.
    Span,
}