BoundField

open class BoundField<V, T>(name: String, type: FieldType<V, T>, params: Params, parent: FieldSet) : MappingField<T>

Represents field of a specific type. Usually it can be accessed as a document property.

Parameters

name
  • name of the field

type
  • type of the field

params
  • mapping parameters

parent
  • the FieldSet object to which the field is bound

Constructors

Link copied to clipboard
fun <V, T> BoundField(name: String, type: FieldType<V, T>, params: Params, 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): T
Link copied to clipboard
open infix fun eq(term: T?): QueryExpression
open fun eq(term: T?, 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, T>
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: T?): Range<T>
Link copied to clipboard
open infix fun gte(other: T?): Range<T>
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open infix fun lt(other: T?): Range<T>
Link copied to clipboard
open infix fun lte(other: T?): Range<T>
Link copied to clipboard
open infix fun ne(term: T?): QueryExpression
open fun ne(term: T?, boost: Float? = null): QueryExpression
Link copied to clipboard
open fun oneOf(vararg terms: T & Any): QueryExpression
open infix fun oneOf(terms: List<T & Any>): QueryExpression
Link copied to clipboard
open fun range(gt: T? = null, gte: T? = null, lt: T? = null, lte: T? = null, boost: Float? = null): Range<T>
Link copied to clipboard
open fun serializeTerm(v: T & Any): Any
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open override fun toValue(): String

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Extensions

Link copied to clipboard

A shortcut to get boosted field.

Link copied to clipboard
Link copied to clipboard