Skip to content

Commit 3a3061b

Browse files
DOCSP-17659 replaced above and below (#144)
* replaced above/below with preceding/following
1 parent 1508a93 commit 3a3061b

35 files changed

+139
-142
lines changed

source/faq.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,14 +213,14 @@ Imagine we are connecting to a collection that contains only this document:
213213
:start-after: start current-api-example
214214
:end-before: end current-api-example
215215

216-
The output of the above code snippet should look like this:
216+
The output of the preceding code snippet should look like this:
217217

218218
.. code-block:: json
219219
:copyable: false
220220

221221
{"_id": 1, "val": 1}
222222

223-
For more information on the legacy classes and methods used in the above example,
223+
For more information on the legacy classes and methods used in the preceding example,
224224
see the following API Documentation pages:
225225

226226
- :java-docs:`Legacy API Javadoc Site <apidocs/mongodb-driver-legacy/index.html>`
@@ -260,7 +260,7 @@ Here is an example showing how to use the legacy ``MongoClientOptions`` and
260260
:start-after: start current-api-mongoclientsettings-example
261261
:end-before: end current-api-mongoclientsettings-example
262262

263-
For more information on the legacy classes and methods used in the above example,
263+
For more information on the legacy classes and methods used in the preceding example,
264264
see the following API Documentation pages:
265265

266266
- :java-docs:`Legacy API Javadoc Site <apidocs/mongodb-driver-legacy/index.html>`

source/fundamentals/aggregation.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ In the following example, the aggregation pipeline:
143143
:start-after: begin aggregation one
144144
:end-before: end aggregation one
145145

146-
The above aggregation should produce the following results:
146+
The preceding aggregation should produce the following results:
147147

148148
.. code-block:: none
149149
:copyable: false
@@ -178,7 +178,7 @@ winning plans for aggregation stages that produce execution plans:
178178
:start-after: begin aggregation three
179179
:end-before: end aggregation three
180180

181-
The above code snippet should produce the following output:
181+
The preceding code snippet should produce the following output:
182182

183183
.. code-block:: none
184184
:copyable: false
@@ -236,7 +236,7 @@ first element in the ``categories`` field.
236236
:start-after: begin aggregation two
237237
:end-before: end aggregation two
238238

239-
The above aggregation should produce the following results:
239+
The preceding aggregation should produce the following results:
240240

241241
.. code-block:: none
242242
:copyable: false

source/fundamentals/builders/filters.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ type, which you can pass to any method that expects a query filter.
6363

6464
import static com.mongodb.client.model.Filters.*;
6565

66-
The examples below assume this static import.
66+
The following examples assume this static import.
6767

6868
The Filter examples in this guide use the following sample collections:
6969

@@ -151,7 +151,7 @@ the value of the ``qty`` field equals "5" in the ``paint_purchases`` collection:
151151
:start-after: begin equalComparison
152152
:end-before: end equalComparison
153153

154-
The following shows the output of the query using the operator specified above:
154+
The following shows the output of the preceding query:
155155

156156
.. code-block:: json
157157
:copyable: false
@@ -169,7 +169,7 @@ the value of the ``qty`` field is greater than or equal to "10" in the
169169
:start-after: begin gteComparison
170170
:end-before: end gteComparison
171171

172-
The following shows the output of the query using the operator specified above:
172+
The following shows the output of the preceding query:
173173

174174
.. code-block:: json
175175
:copyable: false
@@ -186,7 +186,7 @@ the ``paint_purchases`` collection because the predicate is empty:
186186
:start-after: begin emptyComparison
187187
:end-before: end emptyComparison
188188

189-
The output of the query using the operator specified above consists of
189+
The output of the preceding query consists of
190190
all the documents in the collection.
191191

192192
.. code-block:: json
@@ -234,7 +234,7 @@ of the ``color`` field equals "pink" in the ``paint_purchases`` collection:
234234
:start-after: begin orComparison
235235
:end-before: end orComparison
236236

237-
The following shows the output of the query using the operator specified above:
237+
The following shows the output of the preceding query:
238238

239239
.. code-block:: json
240240
:copyable: false
@@ -277,7 +277,7 @@ containing both "A" and "D" in the ``paint_purchases`` collection:
277277
:start-after: begin allComparison
278278
:end-before: end allComparison
279279

280-
The following shows the output of the query using the operator specified above:
280+
The following shows the output of the preceding query:
281281

282282
.. code-block:: json
283283
:copyable: false
@@ -315,7 +315,7 @@ its value does not equal "5" or "8" in the ``paint_purchases`` collection:
315315
:start-after: begin existsComparison
316316
:end-before: end existsComparison
317317

318-
The following shows the output of the query using the operator specified above:
318+
The following shows the output of the preceding query:
319319

320320
.. code-block:: json
321321
:copyable: false
@@ -362,7 +362,7 @@ starting with the letter "p" in the ``paint_purchases`` collection:
362362
:start-after: begin regexComparison
363363
:end-before: end regexComparison
364364

365-
The following shows the output of the query using the operator specified above:
365+
The following shows the output of the preceding query:
366366

367367
.. code-block:: json
368368
:copyable: false
@@ -409,7 +409,7 @@ with bits set at positions of the corresponding bitmask "34" (i.e.
409409
:start-after: begin bitsComparison
410410
:end-before: end bitsComparison
411411

412-
The following shows the output of the query using the operator specified above:
412+
The following shows the output of the preceding query:
413413

414414
.. code-block:: json
415415
:copyable: false
@@ -470,7 +470,7 @@ in the ``geo_points`` collection:
470470
:start-after: begin geoWithinComparison
471471
:end-before: end geoWithinComparison
472472

473-
The following shows the output of the query using the operator specified above:
473+
The following shows the output of the preceding query:
474474

475475
.. code-block:: json
476476
:copyable: false

source/fundamentals/builders/indexes.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ instance, which you can pass to
4747

4848
import static com.mongodb.client.model.Indexes.*;
4949

50-
The examples below assume this static import.
50+
The following examples assume this static import.
5151

5252
.. _ascending-indexes:
5353

source/fundamentals/builders/projections.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ to any method that expects a projection.
4343
:language: java
4444
:dedent:
4545

46-
The examples below assume this static import.
46+
The following examples assume this static import.
4747

4848
Sample Documents and Examples
4949
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

source/fundamentals/builders/sort.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ on the ``_id`` field:
8787

8888
collection.find().sort(ascending("_id"));
8989

90-
The output of the example above should look something like this:
90+
The output of the preceding example should look something like this:
9191

9292
.. code-block:: json
9393
:copyable: false
@@ -115,7 +115,7 @@ on the ``_id`` field:
115115

116116
collection.find().sort(descending("_id"));
117117

118-
The above example should output something like this:
118+
The preceding example should output something like this:
119119

120120
.. code-block:: json
121121
:copyable: false
@@ -149,7 +149,7 @@ on the ``letter`` field, and in the event of a tie, ascending order on the
149149
Bson orderBySort = orderBy(descending("letter"), ascending("_id"));
150150
collection.find().sort(orderBySort);
151151

152-
The output of the example above should look something like this:
152+
The output of the preceding example should look something like this:
153153

154154
.. code-block:: json
155155
:copyable: false

source/fundamentals/builders/updates.txt

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ type, which you can pass to any method that expects an update argument.
4242

4343
import static com.mongodb.client.model.Updates.*;
4444

45-
The examples below assume this static import.
45+
The following examples assume this static import.
4646

4747
The examples in this guide use the following document:
4848

@@ -75,7 +75,7 @@ The following example sets the value of the ``qty`` field to "11":
7575
:start-after: begin setUpdate
7676
:end-before: end setUpdate
7777

78-
The example above updates the original document to the following state:
78+
The preceding example updates the original document to the following state:
7979

8080
.. code-block:: json
8181
:copyable: false
@@ -101,7 +101,7 @@ The following example deletes the ``qty`` field:
101101
:start-after: begin unsetUpdate
102102
:end-before: end unsetUpdate
103103

104-
The example above updates the original document to the following state:
104+
The preceding example updates the original document to the following state:
105105

106106
.. code-block:: json
107107
:copyable: false
@@ -128,7 +128,7 @@ if an upsert resulted in the insert of a document:
128128
:start-after: begin setOnInsertUpdate
129129
:end-before: end setOnInsertUpdate
130130

131-
The example above updates the original document to the following state:
131+
The preceding example updates the original document to the following state:
132132

133133
.. code-block:: json
134134
:copyable: false
@@ -159,7 +159,7 @@ The following example increments the value of the ``qty`` field by
159159
:start-after: begin incUpdate
160160
:end-before: end incUpdate
161161

162-
The example above updates the original document to the following state:
162+
The preceding example updates the original document to the following state:
163163

164164
.. code-block:: json
165165
:copyable: false
@@ -186,7 +186,7 @@ The following example multiplies the value of the ``qty`` field by
186186
:start-after: begin mulUpdate
187187
:end-before: end mulUpdate
188188

189-
The example above updates the original document to the following state:
189+
The preceding example updates the original document to the following state:
190190

191191
.. code-block:: json
192192
:copyable: false
@@ -212,7 +212,7 @@ The following example renames the ``qty`` field to "quantity":
212212
:start-after: begin renameUpdate
213213
:end-before: end renameUpdate
214214

215-
The example above updates the original document to the following state:
215+
The preceding example updates the original document to the following state:
216216

217217
.. code-block:: json
218218
:copyable: false
@@ -237,7 +237,7 @@ specified in an update operation.
237237
:start-after: begin minUpdate
238238
:end-before: end minUpdate
239239

240-
The example above updates the original document to the following state:
240+
The preceding example updates the original document to the following state:
241241

242242
.. code-block:: json
243243
:copyable: false
@@ -265,7 +265,7 @@ maximum of its current value and "8":
265265
:start-after: begin maxUpdate
266266
:end-before: end maxUpdate
267267

268-
The example above updates the original document to the following state:
268+
The preceding example updates the original document to the following state:
269269

270270
.. code-block:: json
271271
:copyable: false
@@ -293,7 +293,7 @@ the current date as a BSON date:
293293
:start-after: begin currentDateUpdate
294294
:end-before: end currentDateUpdate
295295

296-
The example above updates the original document to the following state:
296+
The preceding example updates the original document to the following state:
297297

298298
.. code-block:: json
299299
:copyable: false
@@ -321,7 +321,7 @@ the current date as a BSON timestamp:
321321
:start-after: begin currentTimestampUpdate
322322
:end-before: end currentTimestampUpdate
323323

324-
The example above updates the original document to the following state:
324+
The preceding example updates the original document to the following state:
325325

326326
.. code-block:: json
327327
:copyable: false
@@ -361,7 +361,7 @@ The bitwise operation results in 15:
361361
----
362362
1111
363363

364-
The example above updates the original document to the following state:
364+
The preceding example updates the original document to the following state:
365365

366366
.. code-block:: json
367367
:copyable: false
@@ -394,7 +394,7 @@ the ``vendor`` field:
394394
:start-after: begin addToSetUpdate
395395
:end-before: end addToSetUpdate
396396

397-
The example above updates the original document to the following state:
397+
The preceding example updates the original document to the following state:
398398

399399
.. code-block:: json
400400
:copyable: false
@@ -423,7 +423,7 @@ of the ``vendor`` field:
423423
:start-after: begin popFirstUpdate
424424
:end-before: end popFirstUpdate
425425

426-
The example above updates the original document to the following state:
426+
The preceding example updates the original document to the following state:
427427

428428
.. code-block:: json
429429
:copyable: false
@@ -450,7 +450,7 @@ The following example removes vendor "A" and "M" from the ``vendor`` array:
450450
:start-after: begin pullAllUpdate
451451
:end-before: end pullAllUpdate
452452

453-
The example above updates the original document to the following state:
453+
The preceding example updates the original document to the following state:
454454

455455
.. code-block:: json
456456
:copyable: false
@@ -478,7 +478,7 @@ array:
478478
:start-after: begin pullUpdate
479479
:end-before: end pullUpdate
480480

481-
The example above updates the original document to the following state:
481+
The preceding example updates the original document to the following state:
482482

483483
.. code-block:: json
484484
:copyable: false
@@ -504,7 +504,7 @@ The following examples pushes "C" to the ``vendor`` array:
504504
:start-after: begin pushUpdate
505505
:end-before: end pushUpdate
506506

507-
The example above updates the original document to the following state:
507+
The preceding example updates the original document to the following state:
508508

509509
.. code-block:: json
510510
:copyable: false
@@ -522,7 +522,8 @@ The example above updates the original document to the following state:
522522
Combining Multiple Update Operators
523523
-----------------------------------
524524
An application can update multiple fields of a single document by
525-
combining two or more of the update operators described above.
525+
combining two or more of the update operators described in the preceding
526+
sections.
526527

527528
The following example increments the value of the ``qty`` field by "6", sets
528529
the value of the ``color`` field to "purple", and pushes "R" to
@@ -534,7 +535,7 @@ the ``vendor`` field:
534535
:start-after: begin combineUpdate
535536
:end-before: end combineUpdate
536537

537-
The example above updates the original document to the following state:
538+
The preceding example updates the original document to the following state:
538539

539540
.. code-block:: json
540541
:copyable: false

0 commit comments

Comments
 (0)