batchUpdate
abstract suspend fun batchUpdate(name: String, wait: Boolean = false, configure: BatchUpdateBuilder.() -> Unit)
Apply a mixed sequence of point, vector and payload changes in one request, in the order given.
qdrant.batchUpdate("docs", wait = true) {
upsert { point(1) { vector(0.1f, 0.2f) } }
setPayload(payloadOf("reviewed" to true), byId(1))
delete(byFilter { must { "stale" eq true } })
}Content copied to clipboard
Ordered, not transactional: a later operation sees the effect of an earlier one, but there is no rollback across the batch — if the third operation fails, the first two stay applied.
Throws
if no operation is added.
if the collection does not exist.