|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.search.lucene.index.AnnotationFormatter
public class AnnotationFormatter
Implementation of a lucene Formatter that creates highlighting annotations.
| Constructor Summary | |
|---|---|
AnnotationFormatter(DataFactory factory)
Conversion constructor. |
|
| Method Summary | |
|---|---|
AnySeq |
getHighlightPositions()
Returns the highlight positions. |
java.lang.String |
getOriginalText()
Return the original text. |
java.lang.String |
highlightTerm(java.lang.String originalText,
TokenGroup tokenGroup)
|
void |
reset(java.lang.String originalText)
Reset this formatter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotationFormatter(DataFactory factory)
factory - the RecordFactory to use.| Method Detail |
|---|
public java.lang.String highlightTerm(java.lang.String originalText,
TokenGroup tokenGroup)
org.apache.lucene.search.highlight.Formatter#highlightTerm(String, TokenGroup)public void reset(java.lang.String originalText)
originalText - the original textpublic AnySeq getHighlightPositions()
public java.lang.String getOriginalText()
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||