Class TokenGroup
java.lang.Object
org.apache.lucene.search.highlight.TokenGroup
One, or several overlapping tokens, along with the score(s) and the scope of
the original text
-
Constructor Details
-
TokenGroup
-
-
Method Details
-
getToken
-
getScore
public float getScore(int index) - Parameters:
index- a value between 0 and numTokens -1- Returns:
- the "n"th score
-
getEndOffset
public int getEndOffset()- Returns:
- the end position in the original text
-
getNumTokens
public int getNumTokens()- Returns:
- the number of tokens in this group
-
getStartOffset
public int getStartOffset()- Returns:
- the start position in the original text
-
getTotalScore
public float getTotalScore()- Returns:
- all tokens' scores summed up
-