Skip to content

Commit 9d93e2e

Browse files
author
Sam Kleinman
committed
DOCS-953 minor fixes
1 parent 027eac3 commit 9d93e2e

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

source/release-notes/2.4.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ are *not for production use* under any circumstances.
1313
document are subject to change before the 2.4.0 release.
1414

1515
This document will eventually contain the full release notes for
16-
MongoDB 2.4; during the development cycle this document will contain
17-
documentation of new features and functionality only available in the
16+
MongoDB 2.4; during the development cycle this document will containd
17+
ocumentation of new features and functionality only available in the
1818
2.3 releases.
1919

2020
.. contents:: See the :doc:`full index of this page <2.4-changes>` for
@@ -177,7 +177,7 @@ with the following command:
177177

178178
.. code-block:: javascript
179179

180-
db.collection.ensureIndex( { username: "1",
180+
db.collection.ensureIndex( { username: 1,
181181
"users.profiles": "text" } )
182182

183183
If you create an ascending or descending index as a prefix of a
@@ -197,7 +197,7 @@ following index:
197197
.. code-block:: javascript
198198

199199
db.collection.ensureIndex( { "users.profiles": "text",
200-
username: "1" } )
200+
username: 1 } )
201201

202202
Finally, you may use the special wild card field name specifier
203203
(i.e. ``$**``) to specify index weights and fields. Consider the
@@ -206,7 +206,7 @@ following:
206206
.. code-block:: javascript
207207

208208
db.collection.ensureIndex( { "$**": "text",
209-
username: "1" },
209+
username: 1 },
210210
{ name: "TextIndex" } )
211211

212212
This creates an index named ``TextIndex``, that indexes all string
@@ -263,17 +263,18 @@ cursor.
263263

264264
.. code-block:: javascript
265265

266-
db.collection.runCommand( text: { search: <search string>,
267-
filter: <query document>,
268-
projection: <projection document>,
269-
limit: <number> } )
266+
db.collection.runCommand( "text": { search: <search string>,
267+
filter: <query document>,
268+
projection: <projection document>,
269+
limit: <number> } )
270270

271271
The :dbcommand:`text` command has the following parameters:
272272

273273
:param string query:
274274

275275
A text string that MongoDB stems and uses to query the ``text``
276-
index.
276+
index. When specifying phrase matches, you must escape quote
277+
characters (i.e. ``"``) with backslashes (i.e. ``\``).
277278

278279
:param document filter:
279280

@@ -311,7 +312,6 @@ cursor.
311312
- :dbcommand:`text` adds all negations to the query with the
312313
logical ``AND`` operator.
313314

314-
315315
.. example::
316316

317317
Consider the following examples of :dbcommand:`text` queries. All

0 commit comments

Comments
 (0)