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 theTokenizerchain, 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:CharTermAttributeTypeAttributePositionIncrementAttributePositionLengthAttributeOffsetAttributeTermFrequencyAttributeThe 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.This attribute tracks what sentence a given token belongs to as well as potentially other sentence specific attributes.Default implementation ofSentenceAttribute.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.