Description
Trying to create an index with this gives an unexpected result:
// Create an index list like this:
|
// CREATE INDEX isched
|
// ON `travel-sample` ( DISTINCT ARRAY v FOR v IN schedule END );
|
// …per the example at http://developer.couchbase.com/documentation/server/4.5-dp/indexing-arrays.html
|
String indexString = "( DISTINCT ARRAY v FOR v IN schedule END );";
|
boolean createSuccess = bucketManager.createIndex("isched", true, true, indexString);
|
Looking into the details, it seems to be going down the DSL path, though the javadoc indicate a String should be valid.
The resulting index looks like this in the definitions:
CREATE INDEX `isched` ON `travel-sample`(`( DISTINCT ARRAY v FOR v IN schedule END );`) WITH({"index_type" : "memory_optimized"}) WITH { "defer_build"=true }
|
Attachments
Issue Links
- mentioned in
-
Page Loading...