PointsUpdateOperation

sealed interface PointsUpdateOperation

One step of a batchUpdate: a point, vector or payload change that Qdrant applies as part of a single ordered request.

The batch is ordered but not transactional. Qdrant applies the operations in the order given, so a later step sees the effect of an earlier one, but there is no all-or-nothing rollback across the batch: if step three fails, steps one and two stay applied.

Inheritors

Types

Link copied to clipboard

Clear all payload from the selected points.

Link copied to clipboard
data class Delete(val selector: DeleteSelector) : PointsUpdateOperation

Delete the selected points.

Link copied to clipboard
data class DeletePayload(val keys: List<String>, val selector: DeleteSelector) : PointsUpdateOperation

Delete keys from the selected points' payload.

Link copied to clipboard
data class DeleteVectors(val vectors: List<String>, val selector: DeleteSelector) : PointsUpdateOperation

Delete the named vectors from the selected points.

Link copied to clipboard
data class OverwritePayload(val payload: Payload, val selector: DeleteSelector) : PointsUpdateOperation

Replace the selected points' payload with payload.

Link copied to clipboard
data class SetPayload(val payload: Payload, val selector: DeleteSelector, val key: String? = null) : PointsUpdateOperation

Merge payload into the selected points' payload, optionally under the nested path key.

Link copied to clipboard

Update the vectors of existing points, keeping their payload.

Link copied to clipboard
data class Upsert(val points: List<PointStruct>) : PointsUpdateOperation

Insert or replace points.