Package-level declarations

Types

Link copied to clipboard
abstract class BaseDocSource
Link copied to clipboard
abstract class BaseDocument : FieldSet
Link copied to clipboard
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.

Link copied to clipboard
class BoundJoinField(name: String, type: FieldType<Join, String>, relations: Map<String, List<String>>, params: Params, parent: FieldSet) : BoundField<Join, String>

Represents join field.

Link copied to clipboard
class BoundMappingTemplate<V, T, F>(val name: String, val mapping: DynamicTemplates.DynamicField<V, T, F>, val matchOptions: DynamicTemplates.MatchOptions)
Link copied to clipboard
class BoundRuntimeField<V>(name: String, type: FieldType<V, V>, val script: Script, parent: FieldSet) : BoundField<V, V>

Represents a runtime field.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract class Document(val options: MappingOptions = MappingOptions()) : DynamicTemplates

Base class for describing a top level Elasticsearch document.

Link copied to clipboard

Controls dynamic field mapping setting. See: https://www.elastic.co/guide/en/elasticsearch/reference/current/dynamic-field-mapping.html

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract class FieldSet : FieldSetShortcuts, Named

Base class for any types which hold set of fields: https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html

Link copied to clipboard
abstract class FieldSetShortcuts
Link copied to clipboard

Represents field of any type in an Elasticsearch document. See FieldSet.getAllFields and FieldSet.get methods.

Link copied to clipboard
data class MappingOptions(val dynamic: Dynamic? = null, val numericDetection: Boolean? = null, val dateDetection: Boolean? = null, val dynamicDateFormats: List<String>? = null)
Link copied to clipboard

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

Link copied to clipboard
typealias RawSource = Map<*, *>
Link copied to clipboard
Link copied to clipboard

Fields that are accessible when search query is executing. They are mostly used in scripts.

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

Represents Elasticsearch sub-document.

Link copied to clipboard
open class SubFields<V>(field: BoundField<V, V>) : FieldSet, FieldOperations<V>

Represents Elasticsearch multi-fields: https://www.elastic.co/guide/en/elasticsearch/reference/7.10/multi-fields.html

Functions

Link copied to clipboard
Link copied to clipboard
inline fun <V : Enum<V>> FieldSet.Field<Int, Int>.enum(fieldValue: IntEnumValue<V>): FieldSet.Field<V, V>

Maps integer value to the corresponding enum variant.

inline fun <V : Enum<V>> FieldSet.Field<String, String>.enum(fieldValue: KeywordEnumValue<V>? = null): FieldSet.Field<V, V>

Maps string value to the corresponding enum variant.

Link copied to clipboard
Link copied to clipboard
fun mergeDocuments(vararg docs: Document): Document