FieldType

interface FieldType<V, T>

A field type is responsible for serialization/deserialization of document and term values. Term values are used in queries, aggregations etc.

Parameters

V

the type of field value.

T

the type of term value.

Functions

deserialize
Link copied to clipboard
abstract fun deserialize(v: Any, valueFactory: () -> V? = null): V
Deserializes field value from Elasticsearch.
deserializeTerm
Link copied to clipboard
abstract fun deserializeTerm(v: Any): T
Deserializes term value from Elasticsearch.
serialize
Link copied to clipboard
open fun serialize(v: V): Any
Serializes field value to Elasticsearch.
serializeTerm
Link copied to clipboard
open fun serializeTerm(v: T): Any
Serializes term value to Elasticsearch.

Properties

name
Link copied to clipboard
abstract val name: String
Name of Elasticsearch mapping type.
termType
Link copied to clipboard
abstract val termType: KClass<*>
Term class is used inside FieldSet.

Inheritors

SimpleFieldType
Link copied to clipboard
RangeType
Link copied to clipboard
JoinType
Link copied to clipboard
ObjectType
Link copied to clipboard