C# Class Lucene.Net.Search.Highlight.SimpleHTMLFormatter

Simple IFormatter implementation to highlight terms with a pre and post tag
Inheritance: IFormatter
Exibir arquivo Open project: synhershko/lucene.net Class Usage Examples

Public Methods

Method Description
HighlightTerm ( System originalText, Lucene.Net.Search.Highlight.TokenGroup tokenGroup ) : System.String
SimpleHTMLFormatter ( )

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

SimpleHTMLFormatter ( System preTag, System postTag )

Method Details

HighlightTerm() public method

public HighlightTerm ( System originalText, Lucene.Net.Search.Highlight.TokenGroup tokenGroup ) : System.String
originalText System
tokenGroup Lucene.Net.Search.Highlight.TokenGroup
return System.String

SimpleHTMLFormatter() public method

Default constructor uses HTML: <B> tags to markup terms
public SimpleHTMLFormatter ( )

SimpleHTMLFormatter() public method

public SimpleHTMLFormatter ( System preTag, System postTag )
preTag System
postTag System