Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
data class Bool(val filter: List<QueryExpression> = emptyList(), val should: List<QueryExpression> = emptyList(), val must: List<QueryExpression> = emptyList(), val mustNot: List<QueryExpression> = emptyList(), val minimumShouldMatch: MinimumShouldMatch? = null, val boost: Float? = null) : QueryExpression
Link copied to clipboard

Boosted fields can be used in the MultiMatch query expression.

Link copied to clipboard
data class DisMax(val queries: List<QueryExpression>, val tieBreaker: Float? = null) : QueryExpression
Link copied to clipboard
data class Exists(val field: FieldOperations<*>, val boost: Float? = null) : QueryExpression

Returns documents which have a value for a @paramfield.

Link copied to clipboard
Link copied to clipboard
interface FieldFormat

Marker interface for field formatting.

Link copied to clipboard

Holds field operations shortcuts.

Link copied to clipboard
data class FunctionScore(val query: QueryExpression? = null, val functions: List<FunctionScore.Function>, val boost: Float? = null, val scoreMode: FunctionScore.ScoreMode? = null, val boostMode: FunctionScore.BoostMode? = null, val minScore: Float? = null) : QueryExpression
Link copied to clipboard
data class HasChild(val query: QueryExpression, val type: String, val maxChildren: Int? = null, val minChildren: Int? = null, val scoreMode: FunctionScore.ScoreMode? = null, val ignoreUnmapped: Boolean? = null) : QueryExpression
Link copied to clipboard
data class HasParent(val query: QueryExpression, val parentType: String, val score: Boolean? = null, val ignoreUnmapped: Boolean? = null) : QueryExpression
Link copied to clipboard
data class Ids(val values: List<String>, val boost: Float? = null) : QueryExpression

Returns documents which ID is in @paramvalues.

Link copied to clipboard
data class Match(val field: FieldOperations<String>, val query: String, val boost: Float? = null, val analyzer: String? = null, val minimumShouldMatch: MinimumShouldMatch? = null, val params: Params? = null) : QueryExpression
Link copied to clipboard
data class MatchAll(val boost: Float? = null, val params: Params? = null) : MatchAllQuery
Link copied to clipboard
Link copied to clipboard
data class MatchPhrase(val field: FieldOperations<String>, val query: String, val slop: Int? = null, val boost: Float? = null, val analyzer: String? = null, val params: Params? = null) : QueryExpression
Link copied to clipboard
sealed class MinimumShouldMatch : ToValue<Any>

Represents variants for minimum_should_match parameter.

Link copied to clipboard
data class MultiMatch(val query: String, val fields: List<BoostedField>, val type: MultiMatch.Type? = null, val boost: Float? = null, val params: Params? = null) : QueryExpression

Represents a multi match query that allows to search in several fields at once.

Link copied to clipboard
interface Named : ToValue<String>
Link copied to clipboard
Link copied to clipboard
data class Nested(val path: FieldOperations<Nothing>, val query: QueryExpression, val scoreMode: Nested.ScoreMode? = null, val ignoreUnmapped: Boolean? = null) : QueryExpression
Link copied to clipboard
data class NodeHandle<T : QueryExpression>(val name: String? = null)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class QueryExpressionNode<T : QueryExpression>(val handle: NodeHandle<T>, val expression: T) : QueryExpression
Link copied to clipboard
data class QueryRescore(val query: QueryExpression, val queryWeight: Float? = null, val rescoreQueryWeight: Float? = null, val scoreMode: QueryRescore.ScoreMode? = null, val windowSize: Int? = null) : Rescore
Link copied to clipboard
data class Range<T>(val field: FieldOperations<T>, val gt: T? = null, val gte: T? = null, val lt: T? = null, val lte: T? = null, val relation: Range.Relation? = null, val boost: Float? = null) : QueryExpression

Returns documents that contain @paramfield values within a range specified by parameters: @paramgt, @paramgte, @paramlt, @paramlte.

Link copied to clipboard
abstract class Rescore : NamedExpression
Link copied to clipboard
sealed class Script : ObjExpression
Link copied to clipboard

Represents a search extension that can be implemented as an Elasticsearch plugin.

Link copied to clipboard
interface Sort
Link copied to clipboard
sealed class Source : ObjExpression
Link copied to clipboard
data class Term<T>(val field: FieldOperations<T>, val term: T & Any, val boost: Float? = null) : QueryExpression

Returns documents that contains exact @paramterm in a @paramfield.

Link copied to clipboard
data class Terms<T>(val field: FieldOperations<T>, val terms: List<T & Any>, val boost: Float? = null) : QueryExpression

Returns documents that contains one or more exact @paramterms in a @paramfield.

Functions

Link copied to clipboard

A shortcut to get boosted field.

Link copied to clipboard