Class SimpleHTMLFormatter
Simple IFormatter implementation to highlight terms with a pre and post tag
Implements
Inherited Members
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)
Declaration
public virtual string HighlightTerm(string originalText, TokenGroup tokenGroup)
Parameters
| Type | Name | Description |
|---|---|---|
| string | originalText | |
| TokenGroup | tokenGroup |
Returns
| Type | Description |
|---|---|
| string |