Class SimpleHTMLFormatter
java.lang.Object
org.apache.lucene.search.highlight.SimpleHTMLFormatter
- All Implemented Interfaces:
Formatter
Simple
Formatter
implementation to highlight terms with a pre and post tag.-
Constructor Summary
ConstructorDescriptionDefault constructor uses HTML: <B> tags to markup terms.SimpleHTMLFormatter
(String preTag, String postTag) -
Method Summary
-
Constructor Details
-
SimpleHTMLFormatter
-
SimpleHTMLFormatter
public SimpleHTMLFormatter()Default constructor uses HTML: <B> tags to markup terms.
-
-
Method Details
-
highlightTerm
- Specified by:
highlightTerm
in interfaceFormatter
- Parameters:
originalText
- The section of text being considered for markuptokenGroup
- contains one or several overlapping Tokens along with their scores and positions.
-