SearchQueryResult

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

Constructors

Link copied to clipboard
fun <S : BaseDocSource> SearchQueryResult(rawResult: Map<String, Any?>?, took: Long, timedOut: Boolean, totalHits: Long?, totalHitsRelation: String?, maxScore: Float?, hits: List<SearchHit<S>>, aggs: Map<String, AggregationResult>)

Functions

Link copied to clipboard
inline fun <A : AggregationResult> agg(name: String): A
Link copied to clipboard
inline fun <A : AggregationResult> aggIfExists(name: String): A?

Properties

Link copied to clipboard
open override val aggs: Map<String, AggregationResult>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val took: Long
Link copied to clipboard
Link copied to clipboard