Show / Hide Table of Contents

    Class SimpleHTMLFormatter

    Simple IFormatter implementation to highlight terms with a pre and post tag

    Inheritance
    System.Object
    SimpleHTMLFormatter
    Implements
    IFormatter
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.Search.Highlight
    Assembly: Lucene.Net.Highlighter.dll
    Syntax
    public class SimpleHTMLFormatter : IFormatter

    Constructors

    | Improve this Doc View Source

    SimpleHTMLFormatter()

    Default constructor uses HTML: <B> tags to markup terms

    Declaration
    public SimpleHTMLFormatter()
    | Improve this Doc View Source

    SimpleHTMLFormatter(String, String)

    Declaration
    public SimpleHTMLFormatter(string preTag, string postTag)
    Parameters
    Type Name Description
    System.String preTag
    System.String postTag

    Methods

    | Improve this Doc View Source

    HighlightTerm(String, TokenGroup)

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

    Implements

    IFormatter
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Licensed to the Apache Software Foundation (ASF)