Creates the given index.
Creates the given index.
Warning: given the options you choose, and the data to index, it can be a long and blocking operation on the database. You should really consider reading http://www.mongodb.org/display/DOCS/Indexes before doing this, especially in production.
The index to create.
Drops the given index on that collection.
Drops the given index on that collection.
The number of indexes that were dropped.
Drops the given index on that collection.
Drops the given index on that collection.
The number of indexes that were dropped.
Drops all the indexes on that collection.
Creates the given index only if it does not exist on this collection.
Creates the given index only if it does not exist on this collection.
The following rules are used to check the matching index:
- if nsIndex.isDefined
, it checks using the index name,
- otherwise it checks using the key.
Warning: given the options you choose, and the data to index, it can be a long and blocking operation on the database. You should really consider reading http://www.mongodb.org/display/DOCS/Indexes before doing this, especially in production.
The index to create.
a future containing true if the index was created, false if it already exists.
Returns the list of indexes for the current collection.