PayloadEncoder

interface PayloadEncoder

Mainly for use with the DelimitedPayloadTokenFilter, converts char buffers to BytesRef.

NOTE: This interface is subject to change

Inheritors

Functions

Link copied to clipboard
abstract fun encode(buffer: CharArray): BytesRef

abstract fun encode(buffer: CharArray, offset: Int, length: Int): BytesRef

Convert a char array to a BytesRef