public interface PayloadDecoder
PayloadScoreQuery
Modifier and Type | Field and Description |
---|---|
static PayloadDecoder |
FLOAT_DECODER
A
PayloadDecoder that interprets the bytes of a payload as a float |
Modifier and Type | Method and Description |
---|---|
float |
computePayloadFactor(BytesRef payload)
Compute a float value for the given payload
|
default float |
computePayloadFactor(int docID,
int startPosition,
int endPosition,
BytesRef payload)
Deprecated.
Use
computePayloadFactor(BytesRef) - doc and position can be taken
into account in PayloadFunction.currentScore(int, String, int, int, int, float, float) |
static final PayloadDecoder FLOAT_DECODER
PayloadDecoder
that interprets the bytes of a payload as a float@Deprecated default float computePayloadFactor(int docID, int startPosition, int endPosition, BytesRef payload)
computePayloadFactor(BytesRef)
- doc and position can be taken
into account in PayloadFunction.currentScore(int, String, int, int, int, float, float)
float computePayloadFactor(BytesRef payload)
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.