Skip to content

Commit d1c6f99

Browse files
committed
DOCSP-14923 fix deprecated directive for NextGen
1 parent f446974 commit d1c6f99

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

source/reference/method/db.collection.ensureIndex.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)