Details
-
Bug
-
Resolution: Duplicate
-
Major - P3
-
None
-
None
-
*Location*: http://docs.mongodb.org/manual/reference/method/db.collection.createIndex/#db.collection.createIndex
*User-Agent*: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.101 Safari/537.36
*Referrer*: http://docs.mongodb.org/manual/reference/method/db.collection.ensureIndex/
*Screen Resolution*: 1920 x 1080
*repo*: docs
*source*: reference/method/db.collection.createIndex
*Location*: http://docs.mongodb.org/manual/reference/method/db.collection.createIndex/#db.collection.createIndex *User-Agent*: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.101 Safari/537.36 *Referrer*: http://docs.mongodb.org/manual/reference/method/db.collection.ensureIndex/ *Screen Resolution*: 1920 x 1080 *repo*: docs *source*: reference/method/db.collection.createIndex
Description
Additional Information
Use db.collection.createIndex() rather than db.collection.createIndex() to create new indexes.
this comment should probably be "rather than db.collection.ensureIndex()"