| java.lang.Object org.apache.lucene.search.highlight.TokenGroup
TokenGroup | public class TokenGroup (Code) | | One, or several overlapping tokens, along with the score(s) and the scope of
the original text
author: MAHarwood |
startOffset | int startOffset(Code) | | |
addToken | void addToken(Token token, float score)(Code) | | |
getEndOffset | public int getEndOffset()(Code) | | the end position in the original text |
getNumTokens | public int getNumTokens()(Code) | | the number of tokens in this group |
getScore | public float getScore(int index)(Code) | | Parameters: index - a value between 0 and numTokens -1 the "n"th score |
getStartOffset | public int getStartOffset()(Code) | | the start position in the original text |
getToken | public Token getToken(int index)(Code) | | Parameters: index - a value between 0 and numTokens -1 the "n"th token |
getTotalScore | public float getTotalScore()(Code) | | all tokens' scores summed up |
isDistinct | boolean isDistinct(Token token)(Code) | | |
|
|