Lucene.Net  3.0.3
Lucene.Net is a port of the Lucene search engine library, written in C# and targeted at .NET runtime users.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Pages
Public Member Functions | List of all members
Lucene.Net.Search.Highlight.SimpleHTMLFormatter Class Reference

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

Inherits Lucene.Net.Search.Highlight.IFormatter.

Public Member Functions

 SimpleHTMLFormatter (System.String preTag, System.String postTag)
 
 SimpleHTMLFormatter ()
 Default constructor uses HTML: <B> tags to markup terms
 
virtual System.String HighlightTerm (System.String originalText, TokenGroup tokenGroup)
 

Detailed Description

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

<author> MAHarwood

</author>

Definition at line 24 of file SimpleHTMLFormatter.cs.

Constructor & Destructor Documentation

Lucene.Net.Search.Highlight.SimpleHTMLFormatter.SimpleHTMLFormatter ( System.String  preTag,
System.String  postTag 
)

Definition at line 30 of file SimpleHTMLFormatter.cs.

Lucene.Net.Search.Highlight.SimpleHTMLFormatter.SimpleHTMLFormatter ( )

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

Definition at line 40 of file SimpleHTMLFormatter.cs.

Member Function Documentation

virtual System.String Lucene.Net.Search.Highlight.SimpleHTMLFormatter.HighlightTerm ( System.String  originalText,
TokenGroup  tokenGroup 
)
virtual
Parameters
originalTextThe section of text being considered for markup
tokenGroupcontains one or several overlapping Tokens along with their scores and positions.

Implements Lucene.Net.Search.Highlight.IFormatter.

Definition at line 49 of file SimpleHTMLFormatter.cs.


The documentation for this class was generated from the following file: