Method ScorePayload
ScorePayload(Int32, Int32, Int32, BytesRef)
Calculate a scoring factor based on the data in the payload. Implementations are responsible for interpreting what is in the payload. Lucene makes no assumptions about what is in the byte array.
Declaration
public abstract float ScorePayload(int doc, int start, int end, BytesRef payload)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | doc | The docId currently being scored. |
System.Int32 | start | The start position of the payload |
System.Int32 | end | The end position of the payload |
BytesRef | payload | The payload byte array to be scored |
Returns
Type | Description |
---|---|
System.Single | An implementation dependent float to be used as a scoring factor |