SearchQueryResult

data class SearchQueryResult<S : BaseDocSource>(rawResult: Map<String, Any?>?, took: Long, timedOut: Boolean, totalHits: Long?, totalHitsRelation: String?, maxScore: Double?, hits: List<SearchHit<S>>, aggs: Map<String, AggregationResult>) : AggAwareResult

Functions

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

Properties

aggs
Link copied to clipboard
open override val aggs: Map<String, AggregationResult>
hits
Link copied to clipboard
val hits: List<SearchHit<S>>
maxScore
Link copied to clipboard
val maxScore: Double?
rawResult
Link copied to clipboard
val rawResult: Map<String, Any?>?
timedOut
Link copied to clipboard
val timedOut: Boolean
took
Link copied to clipboard
val took: Long
totalHits
Link copied to clipboard
val totalHits: Long?
totalHitsRelation
Link copied to clipboard
val totalHitsRelation: String?