Example usage for Java org.apache.lucene.search.uhighlight Passage fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addMatch(int startOffset, int endOffset, BytesRef term, int termFreqInDoc) |
int | getEndOffset() End offset of this passage. |
int[] | getMatchEnds() End offsets of the term matches, corresponding with #getMatchStarts . |
int[] | getMatchStarts() Start offsets of the term matches, in increasing order. |
int | getNumMatches() Number of term matches available in #getMatchStarts , #getMatchEnds , #getMatchTerms |
int | getStartOffset() Start offset of this passage. |
void | setEndOffset(int endOffset) |
void | setScore(float score) |
void | setStartOffset(int startOffset) |