SubDocument

abstract class SubDocument(field: DocSourceField, dynamic: Dynamic? = null) : BaseDocument, FieldOperations<Nothing>

Represents Elasticsearch sub-document.

Constructors

Link copied to clipboard
fun SubDocument(field: DocSourceField, dynamic: Dynamic? = null)

Types

Link copied to clipboard
class UnboundSubDocument<T : SubDocument>(name: String?, type: ObjectType<BaseDocSource>, params: Params, subDocumentFactory: (DocSourceField) -> T)

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
Link copied to clipboard
open infix fun eq(term: Nothing?): QueryExpression
open fun eq(term: Nothing?, 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
Link copied to clipboard
Link copied to clipboard
open override fun getQualifiedFieldName(): String
Link copied to clipboard
open infix fun gt(other: Nothing?): Range<Nothing>
Link copied to clipboard
open infix fun gte(other: Nothing?): Range<Nothing>
Link copied to clipboard
open infix fun lt(other: Nothing?): Range<Nothing>
Link copied to clipboard
open infix fun lte(other: Nothing?): Range<Nothing>
Link copied to clipboard
open infix fun ne(term: Nothing?): QueryExpression
open fun ne(term: Nothing?, boost: Float? = null): QueryExpression
Link copied to clipboard
fun <T : SubDocument> nested(factory: (DocSourceField) -> T, dynamic: Dynamic? = null, params: Params = Params()): SubDocument.UnboundSubDocument<T>
fun <T : SubDocument> nested(name: String?, factory: (DocSourceField) -> T, dynamic: Dynamic? = null, params: Params = Params()): SubDocument.UnboundSubDocument<T>
Link copied to clipboard
fun <T : SubDocument> obj(factory: (DocSourceField) -> T, enabled: Boolean? = null, dynamic: Dynamic? = null, params: Params = Params()): SubDocument.UnboundSubDocument<T>
fun <T : SubDocument> obj(name: String?, factory: (DocSourceField) -> T, enabled: Boolean? = null, dynamic: Dynamic? = null, params: Params = Params()): SubDocument.UnboundSubDocument<T>
Link copied to clipboard
fun <T : SubDocument> object(factory: (DocSourceField) -> T, enabled: Boolean? = null, dynamic: Dynamic? = null, params: Params = Params()): SubDocument.UnboundSubDocument<T>
fun <T : SubDocument> object(name: String?, factory: (DocSourceField) -> T, enabled: Boolean? = null, dynamic: Dynamic? = null, params: Params = Params()): SubDocument.UnboundSubDocument<T>
Link copied to clipboard
open fun oneOf(vararg terms: Nothing): QueryExpression
open infix fun oneOf(terms: List<Nothing>): QueryExpression
Link copied to clipboard
open fun range(gt: Nothing? = null, gte: Nothing? = null, lt: Nothing? = null, lte: Nothing? = null, boost: Float? = null): Range<Nothing>
Link copied to clipboard
open fun serializeTerm(v: Nothing): Any
Link copied to clipboard
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