EnumFieldType
Parameters
V
the type of enum
enumValues
an array of enum variants. Usually got by calling enumValues function.
fieldValue
function interface that takes enum variant and returns field value.
type
original field type
termType
should be V::class
Constructors
Functions
Link copied to clipboard
Deserializes field value from Elasticsearch.
Link copied to clipboard
Deserializes term value from Elasticsearch.
Link copied to clipboard
Serializes term value to Elasticsearch.