SubDocument

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

Represents Elasticsearch sub-document.

Constructors

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

Types

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

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): Nothing
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: Nothing?): QueryExpression
open fun eq(term: Nothing?, 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(): DocSourceField
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<BaseDocSource, Nothing>
getParent
Link copied to clipboard
fun getParent(): FieldSet
getQualifiedFieldName
Link copied to clipboard
open override fun getQualifiedFieldName(): String
gt
Link copied to clipboard
open infix fun gt(other: Nothing?): Range<Nothing>
gte
Link copied to clipboard
open infix fun gte(other: Nothing?): Range<Nothing>
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: Nothing?): Range<Nothing>
lte
Link copied to clipboard
open infix fun lte(other: Nothing?): Range<Nothing>
ne
Link copied to clipboard
open infix fun ne(term: Nothing?): QueryExpression
open fun ne(term: Nothing?, boost: Double? = null): QueryExpression
nested
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>
obj
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>
object
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>
oneOf
Link copied to clipboard
open infix fun oneOf(terms: List<Nothing>): QueryExpression
range
Link copied to clipboard
open fun range(gt: Nothing? = null, gte: Nothing? = null, lt: Nothing? = null, lte: Nothing? = null, boost: Double? = null): Range<Nothing>
serializeTerm
Link copied to clipboard
open fun serializeTerm(v: Nothing): 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>
subFields
Link copied to clipboard
fun <V, F : SubFields<V>> FieldSet.Field<V, V>.subFields(factory: (BoundField<V, V>) -> F): SubFields.UnboundSubFields<V, F>
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

Properties

options
Link copied to clipboard
val options: MappingOptions

Extensions

list
Link copied to clipboard
fun SubDocument.list(): BoundField<MutableList<DynDocSource?>, Nothing>