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
    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 © 2022 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.