Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions source/reference/method/db.collection.ensureIndex.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ db.collection.ensureIndex()

* - :option:`v`
- index version
- 1
- The default index version depends on the version of
:program:`mongod` running when creating the index. Before version
2.0, the this value was 0; versions 2.0 and later use version 1.
- All

* - :option:`weights`
Expand Down Expand Up @@ -236,10 +238,6 @@ db.collection.ensureIndex()
- Non-background indexing operations will block all other
operations on a database.

.. [#] The default index version depends on the version of
:program:`mongod` running when creating the index. Before version
2.0, the this value was 0; versions 2.0 and later use version 1.

.. seealso::

In addition to the ascending/descending indexes, MongoDB provides
Expand Down