UpdateAliasesBuilder

DSL for updateAliases. Every action added here is applied by the server as one atomic batch, so an alias never points at nothing during a swap.

qdrant.updateAliases {
deleteAlias("docs") // detach the old collection
createAlias("docs-v2", "docs") // and re-point in the same atomic step
}

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun createAlias(collection: String, alias: String)

Point alias at collection (creates the alias, or moves it if it already exists).

Link copied to clipboard
fun deleteAlias(alias: String)

Remove alias if it exists.

Link copied to clipboard
fun renameAlias(from: String, to: String)

Rename alias from to to.