public interface PayloadAttribute extends Attribute
The payload is stored in the index at each position, and can
be used to influence scoring when using Payload-based queries
NOTE: because the payload will be stored at each position, its usually best to use the minimum number of bytes necessary. Some codec implementations may optimize payload storage when all payloads have the same length.
|Modifier and Type||Method and Description|
Returns this Token's payload.
Sets this Token's payload.
void setPayload(BytesRef payload)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.