update

suspend fun update(id: String, maxRetries: Int = 5, pipeline: String? = null, refresh: Refresh? = null, routing: String? = null, timeout: Duration? = null, retryDelay: Duration = 2.seconds, block: (T) -> T): Pair<T, DocumentIndexResponse>