Skip to content

Commit 6dfe71c

Browse files
author
Dave Cuthbert
authored
DOCS-15956 BACKPORT (#2686)
1 parent 20e2eec commit 6dfe71c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/tutorial/equality-sort-range-rule.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,14 @@ are sorted by model:
141141
db.cars.find(
142142
{
143143
manufacturer: 'Ford',
144-
cost: { $gt: 10000 }
144+
cost: { $gt: 15000 }
145145
} ).sort( { model: 1 } )
146146

147147

148148
The query contains all the elements of the ESR Rule:
149149

150150
- ``manufacturer: 'Ford'`` is an equality based match
151-
- ``cost: { $gt: 10000 }`` is a range based match, and
151+
- ``cost: { $gt: 15000 }`` is a range based match, and
152152
- ``model`` is used for sorting
153153

154154
Following the ESR rule, the optimal index for the example query is:

0 commit comments

Comments
 (0)