Package-level declarations

Types

Link copied to clipboard
abstract class AggAwareResult
Link copied to clipboard
data class AsyncResult<P, T>(val task: String, val createStatus: (Deserializer.ObjectCtx) -> P, val createResponse: (Deserializer.ObjectCtx) -> T)
Link copied to clipboard
abstract class BaseSearchQuery<S : BaseDocSource, T : BaseSearchQuery<S, T>>(docSourceFactory: (obj: Deserializer.ObjectCtx) -> S, query: QueryExpression? = null, params: Params = Params())

An abstract class that holds all the search query builder methods. Inheritors of the class can implement some shortcut methods. For instance SearchQuery.execute which can be suspendable or blocking.

Link copied to clipboard
data class BulkError(val type: String, val reason: String, val index: String, val indexUuid: String, val shard: Int?)
Link copied to clipboard
sealed class BulkItem
Link copied to clipboard
Link copied to clipboard
data class BulkResult(val errors: Boolean, val took: Long, val items: List<BulkItem>)
Link copied to clipboard
data class BulkScrollFailure(val index: String, val type: String?, val id: String, val status: Int, val cause: BulkError)
Link copied to clipboard
data class BulkScrollRetries(val bulk: Long, val search: Long)
Link copied to clipboard

Action on conflicts.

Link copied to clipboard
data class CountResult(val count: Long)
Link copied to clipboard
data class CreateIndexResult(val acknowledged: Boolean, val shardsAcknowledged: Boolean, val index: String)
Link copied to clipboard
data class DeleteByQueryResult(val took: Long, val timedOut: Boolean, val total: Long, val deleted: Long, val batches: Int, val versionConflicts: Long, val noops: Long, val retries: BulkScrollRetries, val throttledMillis: Long, val requestsPerSecond: Float, val throttledUntilMillis: Long, val failures: List<BulkScrollFailure>)
Link copied to clipboard
data class DeleteIndexResult(val acknowledged: Boolean)
Link copied to clipboard
class ElasticsearchCluster(val transport: ElasticsearchTransport, val apiSerde: Serde, val bulkSerde: Serde.OneLineJson, compilers: CompilerSet? = null)
Link copied to clipboard
class ElasticsearchIndex(val name: String, val cluster: ElasticsearchCluster)
Link copied to clipboard
data class Explanation(val value: Float, val description: String, val details: List<Explanation> = emptyList())
Link copied to clipboard
data class MultiSearchQueryResult(val took: Long?, val responses: List<SearchQueryResult<BaseDocSource>>)
Link copied to clipboard
Link copied to clipboard
typealias Params = Map<String, Any>
Link copied to clipboard
data class PingResult(val statusCode: Int, val responseTimeMs: Long)
Link copied to clipboard
Link copied to clipboard

Refresh controls when changes will be searchable.

Link copied to clipboard
data class SearchHit<S : BaseDocSource>(val index: String, val type: String, val id: String, val routing: String? = null, val version: Long? = null, val seqNo: Long? = null, val primaryTerm: Long? = null, val score: Float? = null, val sort: List<Any?>? = null, val source: S? = null, val fields: SearchHit.Fields = Fields(emptyMap()), val explanation: Explanation? = null) : ActionMeta
Link copied to clipboard
open class SearchQuery<S : BaseDocSource>(docSourceFactory: (obj: Deserializer.ObjectCtx) -> S, query: QueryExpression? = null, params: Params = Params()) : BaseSearchQuery<S, SearchQuery<S>>

An asynchronous version of search query.

Link copied to clipboard
data class SearchQueryResult<S : BaseDocSource>(val rawResult: Map<String, Any?>?, val took: Long, val timedOut: Boolean, val totalHits: Long?, val totalHitsRelation: String?, val maxScore: Float?, val hits: List<SearchHit<S>>, val aggs: Map<String, AggregationResult>) : AggAwareResult
Link copied to clipboard
Link copied to clipboard
data class TaskInfo<T>(val node: String, val id: Long, val type: String, val action: String, val status: T, val description: String, val startTimeInMillis: Long, val runningTimeInNanos: Long, val cancellable: Boolean)
Link copied to clipboard
data class TaskResult<P, T>(val completed: Boolean, val task: TaskInfo<P>, val response: T)
Link copied to clipboard
interface ToValue<T>
Link copied to clipboard
data class UpdateByQueryPartialResult(val total: Long, val updated: Long, val created: Long, val deleted: Long, val batches: Int, val versionConflicts: Long, val noops: Long, val retries: BulkScrollRetries, val throttledMillis: Long, val requestsPerSecond: Float, val throttledUntilMillis: Long)
Link copied to clipboard
data class UpdateByQueryResult(val took: Long, val timedOut: Boolean, val total: Long, val updated: Long, val deleted: Long, val batches: Int, val versionConflicts: Long, val noops: Long, val retries: BulkScrollRetries, val throttledMillis: Long, val requestsPerSecond: Float, val throttledUntilMillis: Long, val failures: List<BulkScrollFailure>)
Link copied to clipboard
data class UpdateMappingResult(val acknowledged: Boolean)
Link copied to clipboard
sealed class Version<T : Version<T>> : Comparable<T>
Link copied to clipboard
data class WithIndex<out T>(val indexName: String, val request: T)

Functions

Link copied to clipboard
fun Params(): Params
fun Params(vararg entries: Pair<String, Any?>): Params
fun Params(params: Params, others: Params?): Params
fun Params(params: Params?, vararg entries: Pair<String, Any?>): Params
Link copied to clipboard
fun <T> T.withIndex(indexName: String): WithIndex<T>