File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,27 @@ db.collection.ensureIndex()
99.. admonition:: Removed in 5.0
1010 :class: note
1111
12+ <<<<<<< HEAD
1213 :method:`db.collection.ensureIndex()` has been replaced by
1314 :method:`db.collection.createIndex()`.
15+ =======
16+ .. include:: /includes/fact-mongo-shell-method.rst
17+
18+
19+ .. deprecated:: 3.0
20+
21+ :method:`db.collection.ensureIndex()` has been replaced by
22+ :method:`db.collection.createIndex()`.
23+
24+ Creates an index on the specified field if the index does not
25+ already exist.
26+
27+ Additional Information
28+ ----------------------
29+
30+ - Use :method:`db.collection.createIndex()` rather than
31+ :method:`db.collection.ensureIndex()` to create new indexes.
32+ >>>>>>> 22fb3e9e4... DOCSP-14923 fix deprecated directive for NextGen
1433
1534.. seealso::
1635
You can’t perform that action at this time.
0 commit comments