MetaFields

open class MetaFields : RootFieldSet

Metadata fields: https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-fields.html

Constructors

MetaFields
Link copied to clipboard
fun MetaFields()

Types

BaseMetaField
Link copied to clipboard
abstract class BaseMetaField<V, B : MappingField<V>>(name: String, type: FieldType<V, V>, params: Params, boundFieldFactory: (String, Params, MetaFields) -> B) : FieldSet.Field<V, V>
BoundFieldNamesField
Link copied to clipboard
class BoundFieldNamesField(name: String, params: Params, parent: MetaFields) : BoundField<String, String>
BoundRoutingField
Link copied to clipboard
class BoundRoutingField(name: String, params: Params, parent: MetaFields) : BoundField<String, String>
BoundSizeField
Link copied to clipboard
class BoundSizeField(name: String, params: Params, parent: MetaFields) : BoundField<Long, Long>
BoundSourceField
Link copied to clipboard
class BoundSourceField(name: String, params: Params, parent: MetaFields) : BoundField<String, String>
FieldNamesField
Link copied to clipboard
MetaField
Link copied to clipboard
open class MetaField<V>(name: String, type: FieldType<V, V>, params: Params) : MetaFields.BaseMetaField<V, BoundField<V, V>>
RoutingField
Link copied to clipboard
class RoutingField(required: Boolean?) : MetaFields.BaseMetaField<String, MetaFields.BoundRoutingField>
SizeField
Link copied to clipboard
class SizeField(enabled: Boolean?) : MetaFields.BaseMetaField<Long, MetaFields.BoundSizeField>
SourceField
Link copied to clipboard
class SourceField(enabled: Boolean?, includes: List<String>?, excludes: List<String>?) : MetaFields.BaseMetaField<String, MetaFields.BoundSourceField>

Functions

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>
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>
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>
get
Link copied to clipboard
operator fun get(name: String): MappingField<*>?
getAllFields
Link copied to clipboard
fun getAllFields(): Collection<MappingField<*>>
getFieldByName
Link copied to clipboard
inline fun <T> getFieldByName(name: String): MappingField<T>
getFieldName
Link copied to clipboard
open override fun getFieldName(): String
getQualifiedFieldName
Link copied to clipboard
open override fun getQualifiedFieldName(): String
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>
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>
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

fieldNames
Link copied to clipboard
open val fieldNames: <ERROR CLASS>
id
Link copied to clipboard
val id: <ERROR CLASS>
ignored
Link copied to clipboard
val ignored: <ERROR CLASS>
index
Link copied to clipboard
val index: <ERROR CLASS>
routing
Link copied to clipboard
open val routing: <ERROR CLASS>
size
Link copied to clipboard
open val size: <ERROR CLASS>
source
Link copied to clipboard
open val source: <ERROR CLASS>
type
Link copied to clipboard
val type: <ERROR CLASS>