Interface PayloadDecoder
public interface PayloadDecoder
Defines a way of converting payloads to float values, for use by
PayloadScoreQuery-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PayloadDecoderAPayloadDecoderthat interprets the bytes of a payload as a float -
Method Summary
Modifier and TypeMethodDescriptionfloatcomputePayloadFactor(BytesRef payload) Compute a float value for the given payload
-
Field Details
-
FLOAT_DECODER
APayloadDecoderthat interprets the bytes of a payload as a float
-
-
Method Details
-
computePayloadFactor
Compute a float value for the given payload
-