A Payload is metadata that can be stored together with each occurrence of a term. This metadata is stored inline in the posting list of the specific term.

To store payloads in the index a {@link TokenStream} has to be used that produces payload data.

Use {@link TermPositions#GetPayloadLength()} and {@link TermPositions#GetPayload(byte[], int)} to retrieve the payloads from the index.

Namespace: Lucene.Net.Index
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
[SerializableAttribute]
public class Payload : ICloneable
Visual Basic
<SerializableAttribute> _
Public Class Payload _
	Implements ICloneable
Visual C++
[SerializableAttribute]
public ref class Payload : ICloneable

Inheritance Hierarchy

System..::..Object
  Lucene.Net.Index..::..Payload

See Also