Package org.apache.lucene.analysis.tokenattributes
package org.apache.lucene.analysis.tokenattributes
General-purpose attributes for text analysis.
-
ClassDescriptionThis attribute can be used if you have the raw term bytes to be indexed.Implementation class for
BytesTermAttribute
.The term text of a Token.Default implementation ofCharTermAttribute
.This attribute can be used to pass different flags down theTokenizer
chain, e.g.Default implementation ofFlagsAttribute
.This attribute can be used to mark a token as a keyword.Default implementation ofKeywordAttribute
.The start and end character offset of a Token.Default implementation ofOffsetAttribute
.Default implementation of the common attributes used by Lucene:CharTermAttribute
TypeAttribute
PositionIncrementAttribute
PositionLengthAttribute
OffsetAttribute
TermFrequencyAttribute
The payload of a Token.Default implementation ofPayloadAttribute
.Determines the position of this token relative to the previous Token in a TokenStream, used in phrase searching.Default implementation ofPositionIncrementAttribute
.Determines how many positions this token spans.Default implementation ofPositionLengthAttribute
.Sets the custom term frequency of a term within one document.Default implementation ofTermFrequencyAttribute
.This attribute is requested by TermsHashPerField to index the contents.A Token's lexical type.Default implementation ofTypeAttribute
.