GetDocumentResponse

@Serializable
data class GetDocumentResponse(val index: String, val type: String?, val id: String, val version: Long?, val source: JsonObject?, val seqNo: Int?, val primaryTerm: Int?, val found: Boolean, val routing: String? = null, val fields: JsonObject? = null) : SourceInformation

Constructors

Link copied to clipboard
constructor(index: String, type: String?, id: String, version: Long?, source: JsonObject?, seqNo: Int?, primaryTerm: Int?, found: Boolean, routing: String? = null, fields: JsonObject? = null)

Properties

Link copied to clipboard
val fields: JsonObject? = null
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "_id")
open override val id: String
Link copied to clipboard
@SerialName(value = "_index")
val index: String
Link copied to clipboard
@SerialName(value = "_primary_term")
open override val primaryTerm: Int?
Link copied to clipboard
@SerialName(value = "_routing")
val routing: String? = null
Link copied to clipboard
@SerialName(value = "_seq_no")
open override val seqNo: Int?
Link copied to clipboard
@SerialName(value = "_source")
open override val source: JsonObject?
Link copied to clipboard
@SerialName(value = "_type")
val type: String?
Link copied to clipboard
@SerialName(value = "_version")
open override val version: Long?

Functions

Link copied to clipboard
inline fun <T> SourceInformation.document(json: Json = DEFAULT_JSON): T