@@ -151,38 +151,42 @@ The following example returns all documents with the ``cuisine`` value of
151
151
.. tab:: Synchronous
152
152
:tabid: sync
153
153
154
- .. input:: /includes/read/specify-documents-to-return.py
155
- :start-after: start-sort-method
156
- :end-before: end-sort-method
157
- :language: python
154
+ .. io-code-block::
158
155
159
- .. output::
156
+ .. input:: /includes/read/specify-documents-to-return.py
157
+ :start-after: start-sort-method
158
+ :end-before: end-sort-method
159
+ :language: python
160
+
161
+ .. output::
160
162
161
- (Lewis Drug Store) Locanda Vini E Olii
162
- 101 Restaurant And Bar
163
- 44 Sw Ristorante & Bar
164
- 900 Park
165
- A Voce
166
- ...
167
- Zucchero E Pomodori
163
+ (Lewis Drug Store) Locanda Vini E Olii
164
+ 101 Restaurant And Bar
165
+ 44 Sw Ristorante & Bar
166
+ 900 Park
167
+ A Voce
168
+ ...
169
+ Zucchero E Pomodori
168
170
169
171
.. tab:: Asynchronous
170
172
:tabid: async
171
173
172
- .. input:: /includes/read/specify-documents-to-return-async.py
173
- :start-after: start-sort-method
174
- :end-before: end-sort-method
175
- :language: python
176
-
177
- .. output::
174
+ .. io-code-block::
178
175
179
- (Lewis Drug Store) Locanda Vini E Olii
180
- 101 Restaurant And Bar
181
- 44 Sw Ristorante & Bar
182
- 900 Park
183
- A Voce
184
- ...
185
- Zucchero E Pomodori
176
+ .. input:: /includes/read/specify-documents-to-return-async.py
177
+ :start-after: start-sort-method
178
+ :end-before: end-sort-method
179
+ :language: python
180
+
181
+ .. output::
182
+
183
+ (Lewis Drug Store) Locanda Vini E Olii
184
+ 101 Restaurant And Bar
185
+ 44 Sw Ristorante & Bar
186
+ 900 Park
187
+ A Voce
188
+ ...
189
+ Zucchero E Pomodori
186
190
187
191
You can also sort documents by specifying the ``sort`` parameter in your ``find()``
188
192
method. The following example specifies the ``sort`` parameter to return the
@@ -194,38 +198,42 @@ results in the same order as the preceding example. Select the :guilabel:`Synchr
194
198
.. tab:: Synchronous
195
199
:tabid: sync
196
200
197
- .. input:: /includes/read/specify-documents-to-return.py
198
- :start-after: start-sort-option
199
- :end-before: end-sort-option
200
- :language: python
201
-
202
- .. output::
203
-
204
- (Lewis Drug Store) Locanda Vini E Olii
205
- 101 Restaurant And Bar
206
- 44 Sw Ristorante & Bar
207
- 900 Park
208
- A Voce
209
- ...
210
- Zucchero E Pomodori
201
+ .. io-code-block::
202
+
203
+ .. input:: /includes/read/specify-documents-to-return.py
204
+ :start-after: start-sort-option
205
+ :end-before: end-sort-option
206
+ :language: python
207
+
208
+ .. output::
209
+
210
+ (Lewis Drug Store) Locanda Vini E Olii
211
+ 101 Restaurant And Bar
212
+ 44 Sw Ristorante & Bar
213
+ 900 Park
214
+ A Voce
215
+ ...
216
+ Zucchero E Pomodori
211
217
212
218
.. tab:: Asynchronous
213
219
:tabid: async
214
220
215
- .. input:: /includes/read/specify-documents-to-return-async.py
216
- :start-after: start-sort-option
217
- :end-before: end-sort-option
218
- :language: python
221
+ .. io-code-block::
219
222
220
- .. output::
223
+ .. input:: /includes/read/specify-documents-to-return-async.py
224
+ :start-after: start-sort-option
225
+ :end-before: end-sort-option
226
+ :language: python
221
227
222
- (Lewis Drug Store) Locanda Vini E Olii
223
- 101 Restaurant And Bar
224
- 44 Sw Ristorante & Bar
225
- 900 Park
226
- A Voce
227
- ...
228
- Zucchero E Pomodori
228
+ .. output::
229
+
230
+ (Lewis Drug Store) Locanda Vini E Olii
231
+ 101 Restaurant And Bar
232
+ 44 Sw Ristorante & Bar
233
+ 900 Park
234
+ A Voce
235
+ ...
236
+ Zucchero E Pomodori
229
237
230
238
Skip
231
239
----
@@ -244,36 +252,40 @@ or :guilabel:`Asynchronous` tab to see the corresponding code:
244
252
.. tab:: Synchronous
245
253
:tabid: sync
246
254
247
- .. input:: /includes/read/specify-documents-to-return.py
248
- :start-after: start-skip-option
249
- :end-before: end-skip-option
250
- :language: python
255
+ .. io-code-block::
251
256
252
- .. output::
257
+ .. input:: /includes/read/specify-documents-to-return.py
258
+ :start-after: start-skip-option
259
+ :end-before: end-skip-option
260
+ :language: python
261
+
262
+ .. output::
253
263
254
- Dorrian'S Red Hand Restaurant
255
- The Princeton Club
256
- Moran'S Chelsea
257
- La Parisienne Diner
258
- Jimmy'S Corner
259
- ...
264
+ Dorrian'S Red Hand Restaurant
265
+ The Princeton Club
266
+ Moran'S Chelsea
267
+ La Parisienne Diner
268
+ Jimmy'S Corner
269
+ ...
260
270
261
271
.. tab:: Asynchronous
262
272
:tabid: async
263
273
264
- .. input:: /includes/read/specify-documents-to-return-async.py
265
- :start-after: start-skip-option
266
- :end-before: end-skip-option
267
- :language: python
268
-
269
- .. output::
274
+ .. io-code-block::
275
+
276
+ .. input:: /includes/read/specify-documents-to-return-async.py
277
+ :start-after: start-skip-option
278
+ :end-before: end-skip-option
279
+ :language: python
270
280
271
- Dorrian'S Red Hand Restaurant
272
- The Princeton Club
273
- Moran'S Chelsea
274
- La Parisienne Diner
275
- Jimmy'S Corner
276
- ...
281
+ .. output::
282
+
283
+ Dorrian'S Red Hand Restaurant
284
+ The Princeton Club
285
+ Moran'S Chelsea
286
+ La Parisienne Diner
287
+ Jimmy'S Corner
288
+ ...
277
289
278
290
You can also skip returned documents by using the ``skip``
279
291
parameter of the ``find()`` method. The following example specifies the
@@ -285,36 +297,40 @@ same skip as the preceding example. Select the :guilabel:`Synchronous` or
285
297
.. tab:: Synchronous
286
298
:tabid: sync
287
299
288
- .. input:: /includes/read/specify-documents-to-return.py
289
- :start-after: start-skip-option
290
- :end-before: end-skip-option
291
- :language: python
292
-
293
- .. output::
300
+ .. io-code-block::
301
+
302
+ .. input:: /includes/read/specify-documents-to-return.py
303
+ :start-after: start-skip-option
304
+ :end-before: end-skip-option
305
+ :language: python
294
306
295
- Dorrian'S Red Hand Restaurant
296
- The Princeton Club
297
- Moran'S Chelsea
298
- La Parisienne Diner
299
- Jimmy'S Corner
300
- ...
307
+ .. output::
308
+
309
+ Dorrian'S Red Hand Restaurant
310
+ The Princeton Club
311
+ Moran'S Chelsea
312
+ La Parisienne Diner
313
+ Jimmy'S Corner
314
+ ...
301
315
302
316
.. tab:: Asynchronous
303
317
:tabid: async
304
318
305
- .. input:: /includes/read/specify-documents-to-return-async.py
306
- :start-after: start-skip-option
307
- :end-before: end-skip-option
308
- :language: python
319
+ .. io-code-block::
309
320
310
- .. output::
311
-
312
- Dorrian'S Red Hand Restaurant
313
- The Princeton Club
314
- Moran'S Chelsea
315
- La Parisienne Diner
316
- Jimmy'S Corner
317
- ...
321
+ .. input:: /includes/read/specify-documents-to-return-async.py
322
+ :start-after: start-skip-option
323
+ :end-before: end-skip-option
324
+ :language: python
325
+
326
+ .. output::
327
+
328
+ Dorrian'S Red Hand Restaurant
329
+ The Princeton Club
330
+ Moran'S Chelsea
331
+ La Parisienne Diner
332
+ Jimmy'S Corner
333
+ ...
318
334
319
335
Combine Limit, Sort, and Skip
320
336
-----------------------------
@@ -333,34 +349,38 @@ to see the corresponding code:
333
349
.. tab:: Synchronous
334
350
:tabid: sync
335
351
336
- .. input:: /includes/read/specify-documents-to-return.py
337
- :start-after: start-limit-sort-skip
338
- :end-before: end-limit-sort-skip
339
- :language: python
352
+ .. io-code-block::
353
+
354
+ .. input:: /includes/read/specify-documents-to-return.py
355
+ :start-after: start-limit-sort-skip
356
+ :end-before: end-limit-sort-skip
357
+ :language: python
340
358
341
- .. output::
359
+ .. output::
342
360
343
- Acqua
344
- Acqua Restaurant
345
- Acqua Santa
346
- Acquista Trattoria
347
- Acquolina Catering
361
+ Acqua
362
+ Acqua Restaurant
363
+ Acqua Santa
364
+ Acquista Trattoria
365
+ Acquolina Catering
348
366
349
367
.. tab:: Asynchronous
350
368
:tabid: async
351
369
352
- .. input:: /includes/read/specify-documents-to-return-async.py
353
- :start-after: start-limit-sort-skip
354
- :end-before: end-limit-sort-skip
355
- :language: python
370
+ .. io-code-block::
356
371
357
- .. output::
372
+ .. input:: /includes/read/specify-documents-to-return-async.py
373
+ :start-after: start-limit-sort-skip
374
+ :end-before: end-limit-sort-skip
375
+ :language: python
358
376
359
- Acqua
360
- Acqua Restaurant
361
- Acqua Santa
362
- Acquista Trattoria
363
- Acquolina Catering
377
+ .. output::
378
+
379
+ Acqua
380
+ Acqua Restaurant
381
+ Acqua Santa
382
+ Acquista Trattoria
383
+ Acquolina Catering
364
384
365
385
.. note::
366
386
@@ -378,34 +398,38 @@ same query as the preceding example. Select the :guilabel:`Synchronous` or
378
398
.. tab:: Synchronous
379
399
:tabid: sync
380
400
381
- .. input:: /includes/read/specify-documents-to-return.py
382
- :start-after: start-limit-sort-skip-option
383
- :end-before: end-limit-sort-skip-option
384
- :language: python
401
+ .. io-code-block::
385
402
386
- .. output::
403
+ .. input:: /includes/read/specify-documents-to-return.py
404
+ :start-after: start-limit-sort-skip-option
405
+ :end-before: end-limit-sort-skip-option
406
+ :language: python
407
+
408
+ .. output::
387
409
388
- Acqua
389
- Acqua Restaurant
390
- Acqua Santa
391
- Acquista Trattoria
392
- Acquolina Catering
410
+ Acqua
411
+ Acqua Restaurant
412
+ Acqua Santa
413
+ Acquista Trattoria
414
+ Acquolina Catering
393
415
394
416
.. tab:: Asynchronous
395
417
:tabid: async
396
418
397
- .. input:: /includes/read/specify-documents-to-return-async.py
398
- :start-after: start-limit-sort-skip-option
399
- :end-before: end-limit-sort-skip-option
400
- :language: python
419
+ .. io-code-block::
420
+
421
+ .. input:: /includes/read/specify-documents-to-return-async.py
422
+ :start-after: start-limit-sort-skip-option
423
+ :end-before: end-limit-sort-skip-option
424
+ :language: python
401
425
402
- .. output::
426
+ .. output::
403
427
404
- Acqua
405
- Acqua Restaurant
406
- Acqua Santa
407
- Acquista Trattoria
408
- Acquolina Catering
428
+ Acqua
429
+ Acqua Restaurant
430
+ Acqua Santa
431
+ Acquista Trattoria
432
+ Acquolina Catering
409
433
410
434
Additional Information
411
435
----------------------
0 commit comments