@@ -241,7 +241,7 @@ Create this index with the following operation:
241
241
Alternatively you create an ascending or descending index as a suffix
242
242
to a ``text`` index. Then the ``text`` index can support
243
243
:ref:`covered queries <indexes-covered-queries>` if the
244
- :dbcommand:`text` command specifies a ``projection `` option.
244
+ :dbcommand:`text` command specifies a ``project `` option.
245
245
246
246
Create this index with the following operation:
247
247
@@ -317,7 +317,7 @@ cursor.
317
317
318
318
db.collection.runCommand( "text", { search: <string>,
319
319
filter: <document>,
320
- projection : <document>,
320
+ project : <document>,
321
321
limit: <number>,
322
322
language: <string> } )
323
323
@@ -348,7 +348,7 @@ cursor.
348
348
prefix, the ``filter`` is required and the ``filter`` query must be
349
349
an equality match.
350
350
351
- :param document projection :
351
+ :param document project :
352
352
353
353
Optional. Allows you to limit the fields returned by the query
354
354
to only those specified.
@@ -372,8 +372,7 @@ cursor.
372
372
:dbcommand:`text` returns results, in descending order by score,
373
373
in the form of a document. Results must fit within the
374
374
:limit:`BSON Document Size`. Use the ``limit`` and the
375
- ``projection`` parameters to limit the size of the result set.
376
-
375
+ ``project`` parameters to limit the size of the result set.
377
376
378
377
The implicit connector between the terms of a multi-term search is a
379
378
disjunction (``OR``). Search for ``"first second"`` searches
@@ -464,7 +463,7 @@ cursor.
464
463
search: "coffee",
465
464
filter: { about: /desserts/ },
466
465
limit: 2,
467
- projection : { comments: 1, _id: 0 }
466
+ project : { comments: 1, _id: 0 }
468
467
}
469
468
)
470
469
@@ -474,7 +473,7 @@ cursor.
474
473
475
474
- Because the ``_id`` field is implicitly included, in order to
476
475
return **only** the ``comments`` field, you must explicitly
477
- exclude (``0``) the ``_id`` field. Within the ``projection ``
476
+ exclude (``0``) the ``_id`` field. Within the ``project ``
478
477
document, you cannot mix inclusions (i.e. ``<fieldA>: 1``) and
479
478
exclusions (i.e. ``<fieldB>: 0``), except for the ``_id`` field.
480
479
0 commit comments