Package org.apache.lucene.analysis.payloads
package org.apache.lucene.analysis.payloads
Provides various convenience classes for creating payloads on Tokens.
-
ClassDescriptionBase class for payload encoders.Characters before the delimiter are the "token", those after are the payload.Factory for
DelimitedPayloadTokenFilter.Encode a character array Float as aBytesRef.Does nothing other than convert the char array to a byte array using the specified encoding.Encode a character array Integer as aBytesRef.Assigns a payload to a token based on theTypeAttributeFactory forNumericPayloadTokenFilter.Mainly for use with the DelimitedPayloadTokenFilter, converts char buffers toBytesRef.Utility methods for encoding payloads.Adds theOffsetAttribute.startOffset()andOffsetAttribute.endOffset()First 4 bytes are the startFactory forTokenOffsetPayloadTokenFilter.Makes theTypeAttributea payload.Factory forTypeAsPayloadTokenFilter.