update

abstract suspend fun update(id: String, script: Script, index: String? = null, requireAlias: Boolean? = null, upsert: JsonObject? = null, ifSeqNo: Int? = null, ifPrimaryTerm: Int? = null, routing: String? = null)
abstract suspend fun update(id: String, doc: String, index: String? = null, requireAlias: Boolean? = null, docAsUpsert: Boolean? = null, ifSeqNo: Int? = null, ifPrimaryTerm: Int? = null, routing: String? = null)
abstract suspend fun update(id: String, doc: JsonObject, index: String? = null, requireAlias: Boolean? = null, docAsUpsert: Boolean? = null, ifSeqNo: Int? = null, ifPrimaryTerm: Int? = null, routing: String? = null)