SubFields

open class SubFields<V>(field: BoundField<V, V>) : FieldSet, FieldOperations<V>

Represents Elasticsearch multi-fields: https://www.elastic.co/guide/en/elasticsearch/reference/7.10/multi-fields.html

Constructors

SubFields
Link copied to clipboard
fun <V> SubFields(field: BoundField<V, V>)

Types

UnboundSubFields
Link copied to clipboard
class UnboundSubFields<V, F : SubFields<V>>(unboundField: FieldSet.Field<V, V>, subFieldsFactory: (BoundField<V, V>) -> F)

Functions

asc
Link copied to clipboard
open fun asc(mode: Sort.Mode? = null, numericType: Sort.NumericType? = null, missing: Sort.Missing? = null, unmappedType: FieldType<*, *>? = null, nested: Sort.Nested? = null): Sort
boolean
Link copied to clipboard
fun boolean(name: String? = null, docValues: Boolean? = null, index: Boolean? = null, store: Boolean? = null, params: Params? = null): FieldSet.Field<Boolean, Boolean>
byte
Link copied to clipboard
fun byte(name: String? = null, docValues: Boolean? = null, index: Boolean? = null, store: Boolean? = null, params: Params? = null): FieldSet.Field<Byte, Byte>
desc
Link copied to clipboard
open fun desc(mode: Sort.Mode? = null, numericType: Sort.NumericType? = null, missing: Sort.Missing? = null, unmappedType: FieldType<*, *>? = null, nested: Sort.Nested? = null): Sort
deserializeTerm
Link copied to clipboard
open fun deserializeTerm(v: Any): V
double
Link copied to clipboard
fun double(name: String? = null, docValues: Boolean? = null, index: Boolean? = null, store: Boolean? = null, params: Params? = null): FieldSet.Field<Double, Double>
eq
Link copied to clipboard
open infix fun eq(term: V?): QueryExpression
open fun eq(term: V?, boost: Double? = null): QueryExpression
field
Link copied to clipboard
fun <V, T> field(type: FieldType<V, T>, docValues: Boolean? = null, index: Boolean? = null, store: Boolean? = null, params: Params? = null): FieldSet.Field<V, T>
fun <V, T> field(name: String?, type: FieldType<V, T>, docValues: Boolean? = null, index: Boolean? = null, store: Boolean? = null, params: Params? = null): FieldSet.Field<V, T>
float
Link copied to clipboard
fun float(name: String? = null, docValues: Boolean? = null, index: Boolean? = null, store: Boolean? = null, params: Params? = null): FieldSet.Field<Float, Float>
format
Link copied to clipboard
open fun format(format: String? = null): FieldFormat
get
Link copied to clipboard
operator fun get(name: String): MappingField<*>?
getAllFields
Link copied to clipboard
fun getAllFields(): Collection<MappingField<*>>
getBoundField
Link copied to clipboard
fun getBoundField(): BoundField<V, V>
getFieldByName
Link copied to clipboard
inline fun <T> getFieldByName(name: String): MappingField<T>
getFieldName
Link copied to clipboard
open override fun getFieldName(): String
getFieldType
Link copied to clipboard
open override fun getFieldType(): FieldType<V, V>
getQualifiedFieldName
Link copied to clipboard
open override fun getQualifiedFieldName(): String
gt
Link copied to clipboard
open infix fun gt(other: V?): Range<V>
gte
Link copied to clipboard
open infix fun gte(other: V?): Range<V>
int
Link copied to clipboard
fun int(name: String? = null, docValues: Boolean? = null, index: Boolean? = null, store: Boolean? = null, params: Params? = null): FieldSet.Field<Int, Int>
join
Link copied to clipboard
fun join(name: String? = null, relations: Map<String, List<String>>, eagerGlobalOrdinals: Boolean? = null): FieldSet.JoinField
keyword
Link copied to clipboard
fun keyword(name: String? = null, normalizer: String? = null, docValues: Boolean? = null, index: Boolean? = null, store: Boolean? = null, params: Params? = null): FieldSet.Field<String, String>
long
Link copied to clipboard
fun long(name: String? = null, docValues: Boolean? = null, index: Boolean? = null, store: Boolean? = null, params: Params? = null): FieldSet.Field<Long, Long>
lt
Link copied to clipboard
open infix fun lt(other: V?): Range<V>
lte
Link copied to clipboard
open infix fun lte(other: V?): Range<V>
ne
Link copied to clipboard
open infix fun ne(term: V?): QueryExpression
open fun ne(term: V?, boost: Double? = null): QueryExpression
oneOf
Link copied to clipboard
open infix fun oneOf(terms: List<V>): QueryExpression
range
Link copied to clipboard
open fun range(gt: V? = null, gte: V? = null, lt: V? = null, lte: V? = null, boost: Double? = null): Range<V>
serializeTerm
Link copied to clipboard
open fun serializeTerm(v: V): Any
short
Link copied to clipboard
fun short(name: String? = null, docValues: Boolean? = null, index: Boolean? = null, store: Boolean? = null, params: Params? = null): FieldSet.Field<Short, Short>
text
Link copied to clipboard
fun text(name: String? = null, index: Boolean? = null, indexOptions: String? = null, store: Boolean? = null, norms: Boolean? = null, boost: Double? = null, analyzer: String? = null, searchAnalyzer: String? = null, params: Params? = null): FieldSet.Field<String, String>
toValue
Link copied to clipboard
open override fun toValue(): String