Skip to content

Commit cdc82a9

Browse files
authored
DOCS-14756: minor fixes to multikey-index-bounds.txt and index-wildcard.txt (#5722)
* Update multikey-index-bounds.txt bounds for predicate are arrays of arrays * Update index-wildcard.txt products --> employees
1 parent a0456e8 commit cdc82a9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

source/core/index-wildcard.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,15 +439,15 @@ Consider the following wildcard index on the ``employees`` collection:
439439

440440
.. code-block:: javascript
441441

442-
db.products.createIndex( { "$**" : 1 } )
442+
db.employees.createIndex( { "$**" : 1 } )
443443

444444
The following operation queries for a single field
445445
``lastName`` and projects out all other fields from the
446446
resulting document:
447447

448448
.. code-block:: javascript
449449

450-
db.products.find(
450+
db.employees.find(
451451
{ "lastName" : "Doe" },
452452
{ "_id" : 0, "lastName" : 1 }
453453
)

source/core/multikey-index-bounds.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -349,10 +349,10 @@ field ``ratings`` to require that the array contains at least one
349349

350350
Taking the predicates separately:
351351

352-
- the bounds for the ``score: { $lte: 5 }`` predicate is ``[ -Infinity, 5
353-
]``;
352+
- the bounds for the ``score: { $lte: 5 }`` predicate are ``[ [ -Infinity, 5
353+
] ]``;
354354

355-
- the bounds for the ``by: "anon"`` predicate is ``[ "anon", "anon" ]``.
355+
- the bounds for the ``by: "anon"`` predicate are ``[ [ "anon", "anon" ] ]``.
356356

357357
MongoDB can compound the two bounds to use the combined bounds of:
358358

0 commit comments

Comments
 (0)