@@ -70,7 +70,8 @@ The following example creates an ascending index on the specified field:
70
70
Compound Index
71
71
--------------
72
72
73
- The following example creates a compound index on the specified fields:
73
+ The following example creates a compound index of two ascending indexes
74
+ on the specified fields:
74
75
75
76
.. literalinclude:: /includes/usage-examples/index-code-examples.php
76
77
:start-after: start-compound
@@ -84,7 +85,8 @@ The following example creates a compound index on the specified fields:
84
85
Multikey Index
85
86
--------------
86
87
87
- The following example creates a multikey index on the specified array-valued field:
88
+ The following example creates an ascending multikey index on the
89
+ specified array-valued field:
88
90
89
91
.. literalinclude:: /includes/usage-examples/index-code-examples.php
90
92
:start-after: start-multikey
@@ -115,7 +117,8 @@ that has GeoJSON object values:
115
117
Unique Index
116
118
------------
117
119
118
- The following example creates a unique index on the specified field:
120
+ The following example creates an ascending unique index on the specified
121
+ field:
119
122
120
123
.. literalinclude:: /includes/usage-examples/index-code-examples.php
121
124
:start-after: start-unique
@@ -130,7 +133,8 @@ The following example creates a unique index on the specified field:
130
133
Wildcard Index
131
134
--------------
132
135
133
- The following example creates a wildcard index in the specified collection:
136
+ The following example creates an ascending wildcard index on the
137
+ collection:
134
138
135
139
.. literalinclude:: /includes/usage-examples/index-code-examples.php
136
140
:start-after: start-wildcard
@@ -146,8 +150,8 @@ Clustered Index
146
150
---------------
147
151
148
152
You can create a clustered index when creating a new collection in a
149
- specified database. The following example creates a new collection with a
150
- clustered index on the ``_id`` field:
153
+ specified database. The following example creates a new collection with an
154
+ ascending clustered index on the ``_id`` field:
151
155
152
156
.. literalinclude:: /includes/usage-examples/index-code-examples.php
153
157
:start-after: start-clustered
0 commit comments