opensearch-dsl 0.3.1

Strongly typed OpenSearch DSL
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
/// Specifies how text should be broken up in highlight snippets.
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Deserialize, Serialize)]
#[serde(rename_all = "snake_case")]
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,
}