Skip to content

Commit 089f8df

Browse files
committed
DOCS-671 index as docs and spelling edits
1 parent 5c0e67e commit 089f8df

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

source/reference/method/cursor.max.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ cursor.max()
5353

5454
.. code-block:: javascript
5555

56-
{ "v" : 1, "key" : { "_id" : 1 }, "ns" : "test.products", "name" :"_id_" },
57-
{ "v" : 1, "key" : { "item" : 1, "type" : 1 }, "ns" :"test.products", "name" : "item_1_type_1" },
58-
{ "v" : 1, "key" : { "item" : 1, "type" : -1 }, "ns" : "test.products", "name" : "item_1_type_-1" }
59-
{ "v" : 1, "key" : { "price" : 1 }, "ns" : "test.products", "name" : "price_1" }
56+
{ "_id" : 1 }
57+
{ "item" : 1, "type" : 1 }
58+
{ "item" : 1, "type" : -1 }
59+
{ "price" : 1 }
6060

61-
- Using the ordering of ``item_1_type_1`` index, the :method:`max()
61+
- Using the ordering of ``{ item: 1, type: 1 }`` index, the :method:`max()
6262
<cursor.max()>` method limits the query to the documents that are
6363
below the bound of ``item`` equal to ``apple`` and ``type`` equal
6464
to ``jonagold``:
@@ -80,7 +80,7 @@ cursor.max()
8080
whether :program:`mongod` would select the ``{ item: 1, type: 1
8181
}`` index ordering or the ``{ item: 1, type: -1 }`` index ordering.
8282

83-
- Using the ordering of the index ``price_1``, the :method:`max()
83+
- Using the ordering of the index ``{ price: 1 }``, the :method:`max()
8484
<cursor.max()>` method limits the query to the documents that are
8585
below the index key bound of ``price`` equal to ``1.99`` and the
8686
:method:`min() <cursor.min()>` method limits the query to the
@@ -115,7 +115,7 @@ cursor.max()
115115
The query will use the index on the ``price`` field, even if
116116
the index on ``_id`` may be better.
117117

118-
- The :method:`max() <cursor.max()>` method exist primarily to
118+
- The :method:`max() <cursor.max()>` method exists primarily to
119119
support the :program:`mongos` (sharding) process.
120120

121121
- If you use :method:`max() <cursor.max()>` method with the

source/reference/method/cursor.min.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ cursor.min()
5353

5454
.. code-block:: javascript
5555

56-
{ "v" : 1, "key" : { "_id" : 1 }, "ns" : "test.products", "name" :"_id_" },
57-
{ "v" : 1, "key" : { "item" : 1, "type" : 1 }, "ns" :"test.products", "name" : "item_1_type_1" },
58-
{ "v" : 1, "key" : { "item" : 1, "type" : -1 }, "ns" : "test.products", "name" : "item_1_type_-1" }
59-
{ "v" : 1, "key" : { "price" : 1 }, "ns" : "test.products", "name" : "price_1" }
60-
61-
- Using the ordering of ``item_1_type_1`` index, the :method:`min()
62-
<cursor.min()>` method limits the query to the documents that are
63-
at or above the index key bound of ``item`` equal to ``apple`` and
64-
``type`` equal to ``jonagold``:
56+
{ "_id" : 1 }
57+
{ "item" : 1, "type" : 1 }
58+
{ "item" : 1, "type" : -1 }
59+
{ "price" : 1 }
60+
61+
- Using the ordering of ``{ item: 1, type: 1 }`` index, the
62+
:method:`min() <cursor.min()>` method limits the query to the
63+
documents that are at or above the index key bound of ``item``
64+
equal to ``apple`` and ``type`` equal to ``jonagold``:
6565

6666
.. code-block:: javascript
6767

@@ -85,7 +85,7 @@ cursor.min()
8585
whether :program:`mongod` would select the ``{ item: 1, type: 1
8686
}`` index ordering or the ``{ item: 1, type: -1 }`` index ordering.
8787

88-
- Using the ordering of the index ``price_1``, the :method:`min()
88+
- Using the ordering of the index ``{ price: 1 }``, the :method:`min()
8989
<cursor.min()>` method limits the query to the documents that are
9090
at or above the index key bound of ``price`` equal to ``1.39`` and
9191
the :method:`max() <cursor.max()>` method limits the query to the
@@ -120,7 +120,7 @@ cursor.min()
120120
The query will use the index on the ``price`` field, even if
121121
the index on ``_id`` may be better.
122122

123-
- The :method:`min() <cursor.min()>` method exist primarily to
123+
- The :method:`min() <cursor.min()>` method exists primarily to
124124
support the :program:`mongos` (sharding) process.
125125

126126
- If you use :method:`min() <cursor.min()>` method with the

0 commit comments

Comments
 (0)