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 the given collection.
Drops the given index on the given collection.
the collection name
the name of the index to be dropped
The number of indexes that were dropped.
Drops all the indexes on the given collection.
Drops all the indexes on the given collection.
the collection name
Creates the given index only if it does not exist on this database.
Creates the given index only if it does not exist on this database.
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
true if the index was created, false if it already exists.
Gets a future list of all the index on this database.
Returns a manager for the given collection.
Returns a manager for the given collection.
the collection name
Drops the given index on the given collection.
Drops the given index on the given collection.
The number of indexes that were dropped.
Indexes manager at database level.