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()
9
9
.. admonition:: Removed in 5.0
10
10
:class: note
11
11
12
+ <<<<<<< HEAD
12
13
:method:`db.collection.ensureIndex()` has been replaced by
13
14
: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
14
33
15
34
.. seealso::
16
35
You can’t perform that action at this time.
0 commit comments