Show / Hide Table of Contents

    Interface IFormatter

    Processes terms found in the original text, typically by applying some form of mark-up to highlight terms in HTML search results pages.

    Namespace: Lucene.Net.Search.Highlight
    Assembly: Lucene.Net.Highlighter.dll
    Syntax
    public interface IFormatter

    Methods

    | Improve this Doc View Source

    HighlightTerm(String, TokenGroup)

    Declaration
    string HighlightTerm(string originalText, TokenGroup tokenGroup)
    Parameters
    Type Name Description
    System.String originalText

    The section of text being considered for markup

    TokenGroup tokenGroup

    contains one or several overlapping Tokens along with their scores and positions.

    Returns
    Type Description
    System.String
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)