Class SimpleHTMLFormatter
- java.lang.Object
-
- org.apache.lucene.search.highlight.SimpleHTMLFormatter
-
-
Constructor Summary
Constructors Constructor Description SimpleHTMLFormatter()
Default constructor uses HTML: <B> tags to markup terms.SimpleHTMLFormatter(java.lang.String preTag, java.lang.String postTag)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
highlightTerm(java.lang.String originalText, TokenGroup tokenGroup)
-
-
-
Method Detail
-
highlightTerm
public java.lang.String highlightTerm(java.lang.String originalText, TokenGroup tokenGroup)
- 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.
-
-