Package-level declarations

Types

Link copied to clipboard
class BoolQueryDsl(builder: BoolQuery.Builder)

Type-safe DSL for building Elasticsearch boolean queries with typed occurrences.

Link copied to clipboard
annotation class ElasticsearchDsl
Link copied to clipboard
class QueryVariantDsl(add: (queryVariant: QueryVariant) -> Unit)

Type-safe DSL for building Elasticsearch queries using metamodel-based field references.

Link copied to clipboard
value class StartBound<T : Comparable<T>>(val range: Range<T>)

Functions

Link copied to clipboard
fun BoolQuery.Builder.boolQueryDsl(block: BoolQueryDsl.() -> Unit): BoolQuery.Builder

Creates a BoolQueryDsl context for building bool queries

Link copied to clipboard

Creates a range bound type where

Link copied to clipboard

Creates a range bound type where

Link copied to clipboard
fun <T> Metamodel<*>.toFieldValue(value: T?): FieldValue?

Converts a value to an Elasticsearch FieldValue for regular fields. Uses standard type conversion logic.

Link copied to clipboard
fun NativeQuery.toJsonSearchRequest(): String

Converts a NativeQuery to its JSON representation for testing purposes. Removes the class name prefix for cleaner output.

Link copied to clipboard
fun Query.toJsonString(): String

Converts a Query to its JSON representation for testing purposes. Removes the class name prefix for cleaner output compatible with JCV.