updateAliasesToNewIndex

suspend fun updateAliasesToNewIndex(newIndex: String, deleteOldIndex: Boolean = false)

Convenient way to atomically change over to a new index.

Assumes there is only one index for the read and write alias. If this is not true, don't use deleteOldIndex.

Important. you should of course take care of reindexing yourself before you call this with deleteOldIndex set to true