Java org.apache.lucene.search.uhighlight Passage fields, constructors, methods, implement or subclass

Example usage for Java org.apache.lucene.search.uhighlight Passage fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.lucene.search.uhighlight Passage.

The text is from its open source code.

Constructor

Method

voidaddMatch(int startOffset, int endOffset, BytesRef term, int termFreqInDoc)
intgetEndOffset()
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.
intgetNumMatches()
Number of term matches available in #getMatchStarts , #getMatchEnds , #getMatchTerms
intgetStartOffset()
Start offset of this passage.
voidsetEndOffset(int endOffset)
voidsetScore(float score)
voidsetStartOffset(int startOffset)