Search Response
@Serializable
Constructors
Link copied to clipboard
constructor(took: Long?, shards: Shards?, timedOut: Boolean?, hits: SearchResponse.Hits?, aggregations: Aggregations?, scrollId: String?, pitId: String?)
Types
Link copied to clipboard
@Serializable
Link copied to clipboard
@Serializable
Properties
Functions
Link copied to clipboard
fun <T : Any> SearchResponse.parseHits(deserializationStrategy: ModelSerializationStrategy<T>): List<T>
Version of parseHits that reuses the ModelSerializationStrategy
.
Quick way to get the document hits from a SearchResponse. You can override the default json if you need to.
fun <T> SearchResponse.parseHits(deserializationStrategy: DeserializationStrategy<T>, json: Json = DEFAULT_JSON): List<T>
Non reified version of parseHits that takes a deserializationStrategy.