updateCollectionCluster

abstract suspend fun updateCollectionCluster(name: String, operation: ClusterOperation, timeout: Int? = null)

Move, replicate or drop a shard.

qdrant.updateCollectionCluster("docs", ClusterOperation.ReplicateShard(shardId = 0, fromPeerId = 1, toPeerId = 2))

These move data between peers, so the call returns once the transfer is accepted, not once it has finished. Watch collectionClusterInfo's shardTransfers to see it complete.

Parameters

timeout

optional server-side commit timeout, in seconds.