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

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

Types

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

Functions

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
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
Link copied to clipboard
open fun deserializeTerm(v: Any): V
Link copied to clipboard
open infix fun eq(term: V?): QueryExpression
open fun eq(term: V?, boost: Float? = null): QueryExpression
Link copied to clipboard
open fun format(format: String? = null): FieldFormat
Link copied to clipboard
operator fun get(name: String): MappingField<*>?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <T> getFieldByName(name: String): MappingField<T>
Link copied to clipboard
open override fun getFieldName(): String
Link copied to clipboard
open override fun getFieldType(): FieldType<V, V>
Link copied to clipboard
open override fun getQualifiedFieldName(): String
Link copied to clipboard
open infix fun gt(other: V?): Range<V>
Link copied to clipboard
open infix fun gte(other: V?): Range<V>
Link copied to clipboard
open infix fun lt(other: V?): Range<V>
Link copied to clipboard
open infix fun lte(other: V?): Range<V>
Link copied to clipboard
open infix fun ne(term: V?): QueryExpression
open fun ne(term: V?, boost: Float? = null): QueryExpression
Link copied to clipboard
open fun oneOf(vararg terms: V & Any): QueryExpression
open infix fun oneOf(terms: List<V & Any>): QueryExpression
Link copied to clipboard
open fun range(gt: V? = null, gte: V? = null, lt: V? = null, lte: V? = null, boost: Float? = null): Range<V>
Link copied to clipboard
open fun serializeTerm(v: V & Any): Any
Link copied to clipboard
open override fun toValue(): String

Extensions

Link copied to clipboard

A shortcut to get boosted field.

Link copied to clipboard