|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.search.highlight.SimpleHTMLFormatter
public class SimpleHTMLFormatter
Simple Formatter implementation to highlight terms with a pre and
post tag.
| Constructor Summary | |
|---|---|
SimpleHTMLFormatter()
Default constructor uses HTML: <B> tags to markup terms. |
|
SimpleHTMLFormatter(java.lang.String preTag,
java.lang.String postTag)
|
|
| Method Summary | |
|---|---|
java.lang.String |
highlightTerm(java.lang.String originalText,
TokenGroup tokenGroup)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleHTMLFormatter(java.lang.String preTag,
java.lang.String postTag)
public SimpleHTMLFormatter()
| Method Detail |
|---|
public java.lang.String highlightTerm(java.lang.String originalText,
TokenGroup tokenGroup)
highlightTerm in interface FormatteroriginalText - The section of text being considered for markuptokenGroup - contains one or several overlapping Tokens along with
their scores and positions.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||