Skip to content

Commit 90a3ab2

Browse files
author
Sam Kleinman
committed
DOCS-1047: renaming projection project in text command
1 parent 3897ac6 commit 90a3ab2

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

source/release-notes/2.4.txt

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ Create this index with the following operation:
241241
Alternatively you create an ascending or descending index as a suffix
242242
to a ``text`` index. Then the ``text`` index can support
243243
:ref:`covered queries <indexes-covered-queries>` if the
244-
:dbcommand:`text` command specifies a ``projection`` option.
244+
:dbcommand:`text` command specifies a ``project`` option.
245245

246246
Create this index with the following operation:
247247

@@ -317,7 +317,7 @@ cursor.
317317

318318
db.collection.runCommand( "text", { search: <string>,
319319
filter: <document>,
320-
projection: <document>,
320+
project: <document>,
321321
limit: <number>,
322322
language: <string> } )
323323

@@ -348,7 +348,7 @@ cursor.
348348
prefix, the ``filter`` is required and the ``filter`` query must be
349349
an equality match.
350350

351-
:param document projection:
351+
:param document project:
352352

353353
Optional. Allows you to limit the fields returned by the query
354354
to only those specified.
@@ -372,8 +372,7 @@ cursor.
372372
:dbcommand:`text` returns results, in descending order by score,
373373
in the form of a document. Results must fit within the
374374
: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.
377376

378377
The implicit connector between the terms of a multi-term search is a
379378
disjunction (``OR``). Search for ``"first second"`` searches
@@ -464,7 +463,7 @@ cursor.
464463
search: "coffee",
465464
filter: { about: /desserts/ },
466465
limit: 2,
467-
projection: { comments: 1, _id: 0 }
466+
project: { comments: 1, _id: 0 }
468467
}
469468
)
470469

@@ -474,7 +473,7 @@ cursor.
474473

475474
- Because the ``_id`` field is implicitly included, in order to
476475
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``
478477
document, you cannot mix inclusions (i.e. ``<fieldA>: 1``) and
479478
exclusions (i.e. ``<fieldB>: 0``), except for the ``_id`` field.
480479

0 commit comments

Comments
 (0)