org.apache.lucene.search.highlight
Class TokenGroup
One, or several overlapping tokens, along with the score(s) and the
scope of the original text
getEndOffset
public int getEndOffset()
- the end position in the original text
getNumTokens
public int getNumTokens()
- the number of tokens in this group
getScore
public float getScore(int index)
index
- a value between 0 and numTokens -1
getStartOffset
public int getStartOffset()
- the start position in the original text
getToken
public Token getToken(int index)
index
- a value between 0 and numTokens -1
getTotalScore
public float getTotalScore()
- all tokens' scores summed up
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.