Class HighlightedTerm
java.lang.Object
com.apple.foundationdb.record.lucene.highlight.HighlightedTerm
Representation of a Single pass of a highlighter. This holds a summarized text (text which has been shortened
with ellipses between highlight positions), along with a collection of intervals which are used
to locate the specific locations to be highlighted.
-
Constructor Summary
ConstructorsConstructorDescriptionHighlightedTerm(String fieldName, String summarizedText, int[] highlightStarts, int[] highlightEnds) -
Method Summary
Modifier and TypeMethodDescriptionintgetHighlightEnd(int pos) intgetHighlightStart(int pos) int
-
Constructor Details
-
HighlightedTerm
-
-
Method Details
-
getFieldName
-
getSummarizedText
-
getNumHighlights
public int getNumHighlights() -
getHighlightStart
public int getHighlightStart(int pos) -
getHighlightEnd
public int getHighlightEnd(int pos)
-