File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ db.collection.createIndex()
4
4
5
5
.. default-domain:: mongodb
6
6
7
- .. deprecated::
8
-
9
7
.. method:: db.collection.createIndex(keys, options)
10
8
9
+ .. deprecated:: 1.8
10
+
11
11
:param document keys: A :term:`document` that contains
12
12
pairs with the name of the field or
13
13
fields to index and order of the index. A
@@ -17,4 +17,14 @@ db.collection.createIndex()
17
17
:param document options: A :term:`document` that controls the creation
18
18
of the index. This argument is optional.
19
19
20
- .. seealso:: :method:`~db.collection.ensureIndex()` and :doc:`/indexes`
20
+ The :method:`~db.collection.ensureIndex()` method is the preferred
21
+ way to create indexes on collections.
22
+
23
+ .. seealso:: :doc:`/indexes`,
24
+ :method:`~db.collection.createIndex()`,
25
+ :method:`~db.collection.dropIndex()`,
26
+ :method:`~db.collection.dropIndexes()`,
27
+ :method:`~db.collection.getIndexes()`,
28
+ :method:`~db.collection.reIndex()`,
29
+ :method:`~db.collection.totalIndexSize()`
30
+
You can’t perform that action at this time.
0 commit comments