Class SimpleHTMLFormatter
Simple IFormatter implementation to highlight terms with a pre and post tag
Inheritance
System.Object
SimpleHTMLFormatter
Implements
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 SourceSimpleHTMLFormatter()
Default constructor uses HTML: <B> tags to markup terms
Declaration
public SimpleHTMLFormatter()
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 SourceHighlightTerm(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 |