Skip to main content

highlight

Function highlight 

Source
pub fn highlight(
    text: &str,
    query_terms: &[String],
    analyzer: Option<&Analyzer>,
    opts: &HighlightOptions,
) -> AnalysisResult<String>
Expand description

Highlight complete source spans with an explicit analyzer, or lowercase word matches when omitted.