upsertIndex

suspend fun upsertIndex(index: SearchIndex, common: CommonOptions = CommonOptions.Default)

Throws

com.couchbase.client.core.error.IndexExistsException

if the given index's SearchIndex.uuid field is null and there is an existing index with the same SearchIndex.name.