Details
-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
None
-
None
-
*Location*: http://docs.couchbase.com/4.0/n1ql/n1ql-language-reference/build-index.html
*User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36
*Referrer*: http://docs.couchbase.com/4.0/n1ql/n1ql-language-reference/statementschintro.html
*Screen Resolution*: 1440 x 900
*Location*: http://docs.couchbase.com/4.0/n1ql/n1ql-language-reference/build-index.html *User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36 *Referrer*: http://docs.couchbase.com/4.0/n1ql/n1ql-language-reference/statementschintro.html *Screen Resolution*: 1440 x 900
Description
From tests, it appears that the correct syntax for DROP is
DROP INDEX ON [namespace:]keyspace(indexName[, indexName]*)
This is not consistent in the documentation, syntax in wrong while example is correct.
Also, the documentation is unclear when stating that indexName is optional/can have at most one empty value. From tests, it appears that BUILD INDEX ON always needs at least one (never empty) index name.
Maybe also add clarification on how to do that for primary indexes as well (since they are mentioned in the intro), ie. use "#primary" as indexName.