Package org.apache.lucene.analysis.payloads
Provides various convenience classes for creating payloads on Tokens.
-
Interface Summary Interface Description PayloadEncoder Mainly for use with the DelimitedPayloadTokenFilter, converts char buffers toBytesRef
. -
Class Summary Class Description AbstractEncoder Base class for payload encoders.DelimitedPayloadTokenFilter Characters before the delimiter are the "token", those after are the payload.DelimitedPayloadTokenFilterFactory Factory forDelimitedPayloadTokenFilter
.FloatEncoder Encode a character array Float as aBytesRef
.IdentityEncoder Does nothing other than convert the char array to a byte array using the specified encoding.IntegerEncoder Encode a character array Integer as aBytesRef
.NumericPayloadTokenFilter Assigns a payload to a token based on theToken.type()
NumericPayloadTokenFilterFactory Factory forNumericPayloadTokenFilter
.PayloadHelper Utility methods for encoding payloads.TokenOffsetPayloadTokenFilter Adds theOffsetAttribute.startOffset()
andOffsetAttribute.endOffset()
First 4 bytes are the startTokenOffsetPayloadTokenFilterFactory Factory forTokenOffsetPayloadTokenFilter
.TypeAsPayloadTokenFilter Makes theToken.type()
a payload.TypeAsPayloadTokenFilterFactory Factory forTypeAsPayloadTokenFilter
.