BoundRuntimeField

class BoundRuntimeField<V>(name: String, type: FieldType<V, V>, val script: Script, parent: FieldSet) : BoundField<V, V>

Represents a runtime field.

Parameters

script
  • script to calculate the runtime field

See more at https://www.elastic.co/guide/en/elasticsearch/reference/current/runtime.html

Constructors

Link copied to clipboard
fun <V> BoundRuntimeField(name: String, type: FieldType<V, V>, script: Script, parent: FieldSet)

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 operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open fun format(format: String? = null): FieldFormat
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 getMappingParams(): Params
Link copied to clipboard
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 override fun hashCode(): Int
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 toString(): String
Link copied to clipboard
open override fun toValue(): String

Properties

Link copied to clipboard

Extensions

Link copied to clipboard

A shortcut to get boosted field.

Link copied to clipboard
Link copied to clipboard