Couchbase server: 5.5 Enterprise
I would like to create my secondary index using the SDK. So I use the
createN1qlIndex(String indexName, List fields, Expression whereClause, boolean ignoreIfExist, boolean defer, long timeout, TimeUnit timeUnit).
But I want my index to have replica. Unfortunatly, the number of replica cannot be set with any SDK function.
Why does “num_replica” parameter is missing in this function?
Is it normal? Is it an omission? a bug? …
This is forcing me to transform my index definition into a String and to use a N1ql query. In my opinion, this way is not reliable in order to simply add the parameter “num_replica”…
I don’t want neither to use the curl command as the number of replica has to be dynamic.
Could you tell me how to create secondary index with replica parameter using the SDK?