IQueryIndexManager.CreatePrimaryIndexAsync and CreateIndexAsync

The first parameter required for each of the two functions listed in the title is a string: “bucketName”. It seems that the bucket’s name is not sufficient as I get an error if the supplied string does not also have the back-ticks used by N1QL for the bucket names in queries.
Is this expected? I found it to be non-intuitive as a requirement.

Welcome to Couchbase Forums @malclear -

Indeed, certain characters in bucket names are not allowed, you’ll need to add the back ticks - the documentation could be better and I added a ticket to do that.


1 Like