|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.solr.client.solrj.response.AnalysisResponseBase.TokenInfo
public static class AnalysisResponseBase.TokenInfo
Holds all information of a token as part of an analysis phase.
Method Summary | |
---|---|
int |
getEnd()
Returns the end position of this token within the text it was originally extracted from. |
int |
getPosition()
Returns the position of this token within the produced token stream. |
String |
getRawText()
Returns the raw text of the token. |
int |
getStart()
Returns the start position of this token within the text it was originally extracted from. |
String |
getText()
Returns the text of the token. |
String |
getType()
Returns the type of the token. |
boolean |
isMatch()
Returns whether this token matches one of the query tokens (if query analysis is performed). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public String getText()
public String getRawText()
null
if the token is indexed as is.
public String getType()
word
or <ALPHANUM>
, but it really
depends on the tokenizer and filters that are used.
public int getStart()
public int getEnd()
public int getPosition()
public boolean isMatch()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |