Document
Base class for describing a top level Elasticsearch document.
Constructors
Types
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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
Link copied to clipboard
fun template(name: String? = null, mapping: DynamicTemplates.Mapping, match: String? = null, unmatch: String? = null, pathMatch: String? = null, pathUnmatch: String? = null, matchPattern: DynamicTemplates.MatchPattern? = null, params: Params? = null): DynamicTemplates.MappingTemplate<Any, Any, BoundField<Any, Any>>
Template without field type.
fun template(name: String? = null, runtime: DynamicTemplates.Runtime.Simple, match: String? = null, unmatch: String? = null, pathMatch: String? = null, pathUnmatch: String? = null, matchPattern: DynamicTemplates.MatchPattern? = null, params: Params? = null): DynamicTemplates.MappingTemplate<Any, Any, BoundField<Any, Any>>
Template for a runtime field.
fun <V, T> template(name: String? = null, mapping: DynamicTemplates.Mapping, matchMappingType: DynamicTemplates.MatchMappingType<V, T>, match: String? = null, unmatch: String? = null, pathMatch: String? = null, pathUnmatch: String? = null, matchPattern: DynamicTemplates.MatchPattern? = null, params: Params? = null): DynamicTemplates.MappingTemplate<V, T, BoundField<V, T>>
Template with field type detected by JSON parser.
fun <V, T> template(name: String? = null, runtime: DynamicTemplates.Runtime.Simple, matchMappingType: DynamicTemplates.MatchMappingType<V, T>, match: String? = null, unmatch: String? = null, pathMatch: String? = null, pathUnmatch: String? = null, matchPattern: DynamicTemplates.MatchPattern? = null, params: Params? = null): DynamicTemplates.MappingTemplate<V, T, BoundField<V, T>>
Template for a runtime field which type is detected by a JSON parser.
fun <V, T> template(name: String? = null, runtime: DynamicTemplates.Runtime.Typed<V, T>, matchMappingType: DynamicTemplates.MatchMappingType<*, *>? = null, match: String? = null, unmatch: String? = null, pathMatch: String? = null, pathUnmatch: String? = null, matchPattern: DynamicTemplates.MatchPattern? = null, params: Params? = null): DynamicTemplates.MappingTemplate<V, T, BoundField<V, T>>
Template for a runtime field with a specified type.
fun <V, T> template(name: String? = null, mapping: FieldSet.Field<V, T>, matchMappingType: DynamicTemplates.MatchMappingType<*, *>? = null, match: String? = null, unmatch: String? = null, pathMatch: String? = null, pathUnmatch: String? = null, matchPattern: DynamicTemplates.MatchPattern? = null, params: Params? = null): DynamicTemplates.MappingTemplate<V, T, BoundField<V, T>>
Template with field type from mapping.
fun <F : SubDocument> template(name: String? = null, mapping: SubDocument.UnboundSubDocument<F>, matchMappingType: DynamicTemplates.MatchMappingType<*, *>? = null, match: String? = null, unmatch: String? = null, pathMatch: String? = null, pathUnmatch: String? = null, matchPattern: DynamicTemplates.MatchPattern? = null, params: Params? = null): DynamicTemplates.MappingTemplate<Any, Nothing, F>
Template for a sub-document field.
fun <V, F : SubFields<V>> template(name: String? = null, mapping: SubFields.UnboundSubFields<V, F>, matchMappingType: DynamicTemplates.MatchMappingType<*, *>? = null, match: String? = null, unmatch: String? = null, pathMatch: String? = null, pathUnmatch: String? = null, matchPattern: DynamicTemplates.MatchPattern? = null, params: Params? = null): DynamicTemplates.MappingTemplate<V, V, F>
Template for a field with sub-fields.