Creates the index in the background, yielding whenever possible.
A unique index cannot be created on a key that has pre-existing duplicate values. If you would like to create the index anyway, keeping the first document the database indexes and deleting all subsequent documents that have duplicate value.
Allows you to expire data on indexes applied to a data (MongoDB 2.2 or higher).
Specify a journal write concern.
For geospatial indexes set the high bound for the co-ordinates.
For geospatial indexes set the lower bound for the co-ordinates.
Override the autogenerated index name (useful if the resulting name is larger than 128 bytes).
Creates a sparse index.
Creates an unique index.
Specify the format version of the indexes.
The write concern.
The write concern timeout.
Generated using TypeDoc
Creates an index on the db and collection collection.
http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#createIndex