@@ -151,38 +151,42 @@ The following example returns all documents with the ``cuisine`` value of
151151 .. tab:: Synchronous
152152 :tabid: sync
153153
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::
158155
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::
160162
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
168170
169171 .. tab:: Asynchronous
170172 :tabid: async
171173
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::
178175
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
186190
187191You can also sort documents by specifying the ``sort`` parameter in your ``find()``
188192method. 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
194198 .. tab:: Synchronous
195199 :tabid: sync
196200
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
211217
212218 .. tab:: Asynchronous
213219 :tabid: async
214220
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::
219222
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
221227
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
229237
230238Skip
231239----
@@ -244,36 +252,40 @@ or :guilabel:`Asynchronous` tab to see the corresponding code:
244252 .. tab:: Synchronous
245253 :tabid: sync
246254
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::
251256
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::
253263
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+ ...
260270
261271 .. tab:: Asynchronous
262272 :tabid: async
263273
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
270280
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+ ...
277289
278290You can also skip returned documents by using the ``skip``
279291parameter of the ``find()`` method. The following example specifies the
@@ -285,36 +297,40 @@ same skip as the preceding example. Select the :guilabel:`Synchronous` or
285297 .. tab:: Synchronous
286298 :tabid: sync
287299
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
294306
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+ ...
301315
302316 .. tab:: Asynchronous
303317 :tabid: async
304318
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::
309320
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+ ...
318334
319335Combine Limit, Sort, and Skip
320336-----------------------------
@@ -333,34 +349,38 @@ to see the corresponding code:
333349 .. tab:: Synchronous
334350 :tabid: sync
335351
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
340358
341- .. output::
359+ .. output::
342360
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
348366
349367 .. tab:: Asynchronous
350368 :tabid: async
351369
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::
356371
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
358376
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
364384
365385.. note::
366386
@@ -378,34 +398,38 @@ same query as the preceding example. Select the :guilabel:`Synchronous` or
378398 .. tab:: Synchronous
379399 :tabid: sync
380400
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::
385402
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::
387409
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
393415
394416 .. tab:: Asynchronous
395417 :tabid: async
396418
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
401425
402- .. output::
426+ .. output::
403427
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
409433
410434Additional Information
411435----------------------
0 commit comments