Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class SimpleHTMLFormatter

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

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

    Constructors

    SimpleHTMLFormatter()

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

    Declaration
    public SimpleHTMLFormatter()

    SimpleHTMLFormatter(string, string)

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

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

    Methods

    HighlightTerm(string, TokenGroup)

    HighlightTerm(string, TokenGroup)

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

    Implements

    IFormatter
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.