Skip to content

Commit 757d467

Browse files
author
Ed Costello
committed
Updates to db.collection.createIndex
1 parent 15aac1d commit 757d467

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

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

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ db.collection.createIndex()
44

55
.. default-domain:: mongodb
66

7-
.. deprecated::
8-
97
.. method:: db.collection.createIndex(keys, options)
108

9+
.. deprecated:: 1.8
10+
1111
:param document keys: A :term:`document` that contains
1212
pairs with the name of the field or
1313
fields to index and order of the index. A
@@ -17,4 +17,14 @@ db.collection.createIndex()
1717
:param document options: A :term:`document` that controls the creation
1818
of the index. This argument is optional.
1919

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+

0 commit comments

Comments
 (0)