Interface IPayloadEncoder
Mainly for use with the DelimitedPayloadTokenFilter, converts char buffers to Lucene.Net.Util.BytesRef.
NOTE: This interface is subject to changeNamespace: Lucene.Net.Analysis.Payloads
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public interface IPayloadEncoder
Methods
Encode(char[])
Mainly for use with the DelimitedPayloadTokenFilter, converts char buffers to Lucene.Net.Util.BytesRef.
NOTE: This interface is subject to changeDeclaration
BytesRef Encode(char[] buffer)
Parameters
Type | Name | Description |
---|---|---|
char[] | buffer |
Returns
Type | Description |
---|---|
BytesRef |
Encode(char[], int, int)
Convert a char array to a Lucene.Net.Util.BytesRef
Declaration
BytesRef Encode(char[] buffer, int offset, int length)
Parameters
Type | Name | Description |
---|---|---|
char[] | buffer | |
int | offset | |
int | length |
Returns
Type | Description |
---|---|
BytesRef | encoded Lucene.Net.Util.BytesRef |