Package org.apache.lucene.analysis.tokenattributes
General-purpose attributes for text analysis.
-
Interface Summary Interface Description BytesTermAttribute This attribute can be used if you have the raw term bytes to be indexed.CharTermAttribute The term text of a Token.FlagsAttribute This attribute can be used to pass different flags down theTokenizerchain, e.g.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 Determines the position of this token relative to the previous Token in a TokenStream, used in phrase searching.PositionLengthAttribute Determines how many positions this token spans.SentenceAttribute This attribute tracks what sentence a given token belongs to as well as potentially other sentence specific attributes.TermFrequencyAttribute Sets the custom term frequency of a term within one document.TermToBytesRefAttribute This attribute is requested by TermsHashPerField to index the contents.TypeAttribute A Token's lexical type. -
Class Summary Class Description BytesTermAttributeImpl Implementation class forBytesTermAttribute.CharTermAttributeImpl Default implementation ofCharTermAttribute.FlagsAttributeImpl Default implementation ofFlagsAttribute.KeywordAttributeImpl Default implementation ofKeywordAttribute.OffsetAttributeImpl Default implementation ofOffsetAttribute.PackedTokenAttributeImpl Default implementation of the common attributes used by Lucene:CharTermAttributeTypeAttributePositionIncrementAttributePositionLengthAttributeOffsetAttributeTermFrequencyAttributePayloadAttributeImpl Default implementation ofPayloadAttribute.PositionIncrementAttributeImpl Default implementation ofPositionIncrementAttribute.PositionLengthAttributeImpl Default implementation ofPositionLengthAttribute.SentenceAttributeImpl Default implementation ofSentenceAttribute.TermFrequencyAttributeImpl Default implementation ofTermFrequencyAttribute.TypeAttributeImpl Default implementation ofTypeAttribute.