Method AddPosition
AddPosition(Int32, BytesRef, Int32, Int32)
Add a new position & payload, and start/end offset. A
null
payload
means no payload; a non-null
payload
with
zero length also means no payload. Caller may reuse
the BytesRef for the payload
between calls
(method must fully consume the payload). startOffset
and endOffset
will be -1 when offsets are not indexed.
Declaration
public abstract void AddPosition(int position, BytesRef payload, int startOffset, int endOffset)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | position | |
BytesRef | payload | |
System.Int32 | startOffset | |
System.Int32 | endOffset |