Package org.apache.lucene.analysis.tokenattributes
Useful
Attribute
s for text analysis.-
Interface Summary Interface Description CharTermAttribute The term text of a Token.FlagsAttribute This attribute can be used to pass different flags down theTokenizer
chain, eg from one TokenFilter to another one.KeywordAttribute This attribute can be used to mark a token as a keyword.OffsetAttribute The start and end character offset of a Token.PayloadAttribute The payload of a Token.PositionIncrementAttribute The positionIncrement determines the position of this token relative to the previous Token in a TokenStream, used in phrase searching.PositionLengthAttribute The positionLength determines how many positions this token spans.TermAttribute Deprecated. UseCharTermAttribute
instead.TypeAttribute A Token's lexical type. -
Class Summary Class Description CharTermAttributeImpl The term text of a Token.FlagsAttributeImpl This attribute can be used to pass different flags down the tokenizer chain, eg from one TokenFilter to another one.KeywordAttributeImpl This attribute can be used to mark a token as a keyword.OffsetAttributeImpl The start and end character offset of a Token.PayloadAttributeImpl The payload of a Token.PositionIncrementAttributeImpl The positionIncrement determines the position of this token relative to the previous Token in aTokenStream
, used in phrase searching.PositionLengthAttributeImpl TermAttributeImpl Deprecated. This class is not used anymore.TypeAttributeImpl A Token's lexical type.