@@ -139,8 +139,11 @@ def get_tasks(self, parameters: Optional[Dict[str, Any]] = None) -> TaskResults:
139
139
140
140
Returns
141
141
-------
142
- task:
143
- Dictionary with limit, from, next and results containing a list of all enqueued, processing, succeeded or failed tasks of the index.
142
+ TaskResults instance with attributes:
143
+ - from_
144
+ - next_
145
+ - limit
146
+ - results : list of Task instances containing all enqueued, processing, succeeded or failed tasks of the index
144
147
145
148
Raises
146
149
------
@@ -165,8 +168,8 @@ def get_task(self, uid: int) -> Task:
165
168
166
169
Returns
167
170
-------
168
- task :
169
- Dictionary containing information about the processed asynchronous task of an index.
171
+ Task :
172
+ Task instance containing information about the processed asynchronous task of an index.
170
173
171
174
Raises
172
175
------
@@ -194,8 +197,8 @@ def wait_for_task(
194
197
195
198
Returns
196
199
-------
197
- task :
198
- Dictionary containing information about the processed asynchronous task.
200
+ Task :
201
+ Task instance containing information about the processed asynchronous task.
199
202
200
203
Raises
201
204
------
@@ -213,8 +216,8 @@ def get_stats(self) -> IndexStats:
213
216
214
217
Returns
215
218
-------
216
- stats :
217
- Dictionary containing stats about the given index.
219
+ IndexStats :
220
+ IndexStats instance containing information about the given index.
218
221
219
222
Raises
220
223
------
@@ -270,8 +273,8 @@ def get_document(self, document_id: str, parameters: Optional[Dict[str, Any]] =
270
273
271
274
Returns
272
275
-------
273
- document :
274
- Dictionary containing the documents information.
276
+ Document :
277
+ Document instance containing the documents information.
275
278
276
279
Raises
277
280
------
@@ -298,8 +301,11 @@ def get_documents(self, parameters: Optional[Dict[str, Any]] = None) -> Document
298
301
299
302
Returns
300
303
-------
301
- document:
302
- Dictionary with limit, offset, total and results a list of dictionaries containing the documents information.
304
+ DocumentsResults instance with attributes:
305
+ - total
306
+ - offset
307
+ - limit
308
+ - results : list of Document instances containing the documents information
303
309
304
310
Raises
305
311
------
@@ -332,8 +338,8 @@ def add_documents(
332
338
333
339
Returns
334
340
-------
335
- task :
336
- Dictionary containing a task to track the informations about the progress of an asynchronous process.
341
+ TaskInfo :
342
+ TaskInfo instance containing information about a task to track the progress of an asynchronous process.
337
343
https://docs.meilisearch.com/reference/api/tasks.html#get-one-task
338
344
339
345
Raises
@@ -364,8 +370,8 @@ def add_documents_in_batches(
364
370
365
371
Returns
366
372
-------
367
- task :
368
- List of dictionaries containing a task to track the informations about the progress of an asynchronous process.
373
+ TaskInfo (list) :
374
+ List of TaskInfo instances containing information about a task to track the progress of an asynchronous process.
369
375
https://docs.meilisearch.com/reference/api/tasks.html#get-one-task
370
376
371
377
Raises
@@ -399,8 +405,8 @@ def add_documents_json(
399
405
400
406
Returns
401
407
-------
402
- task :
403
- Dictionary containing a task to track the informations about the progress of an asynchronous process.
408
+ TaskInfo :
409
+ TaskInfo instance containing information about a task to track the progress of an asynchronous process.
404
410
https://docs.meilisearch.com/reference/api/tasks.html#get-one-task
405
411
406
412
Raises
@@ -426,8 +432,8 @@ def add_documents_csv(
426
432
427
433
Returns
428
434
-------
429
- task :
430
- Dictionary containing a task to track the informations about the progress of an asynchronous process.
435
+ TaskInfo :
436
+ TaskInfo instance containing information about a task to track the progress of an asynchronous process.
431
437
https://docs.meilisearch.com/reference/api/tasks.html#get-one-task
432
438
433
439
Raises
@@ -453,8 +459,8 @@ def add_documents_ndjson(
453
459
454
460
Returns
455
461
-------
456
- task :
457
- Dictionary containing a task to track the informations about the progress of an asynchronous process.
462
+ TaskInfo :
463
+ TaskInfo instance containing information about a task to track the progress of an asynchronous process.
458
464
https://docs.meilisearch.com/reference/api/tasks.html#get-one-task
459
465
460
466
Raises
@@ -483,8 +489,8 @@ def add_documents_raw(
483
489
484
490
Returns
485
491
-------
486
- task :
487
- Dictionary containing a task to track the informations about the progress of an asynchronous process.
492
+ TaskInfo :
493
+ TaskInfo instance containing information about a task to track the progress of an asynchronous process.
488
494
https://docs.meilisearch.com/reference/api/tasks.html#get-one-task
489
495
490
496
Raises
@@ -512,8 +518,8 @@ def update_documents(
512
518
513
519
Returns
514
520
-------
515
- task :
516
- Dictionary containing a task to track the informations about the progress of an asynchronous process.
521
+ TaskInfo :
522
+ TaskInfo instance containing information about a task to track the progress of an asynchronous process.
517
523
https://docs.meilisearch.com/reference/api/tasks.html#get-one-task
518
524
519
525
Raises
@@ -544,8 +550,8 @@ def update_documents_in_batches(
544
550
545
551
Returns
546
552
-------
547
- task :
548
- List of dictionaries containing a task to track the informations about the progress of an asynchronous process.
553
+ TaskInfo (list) :
554
+ List of TaskInfo instances containing information about a task to track the progress of an asynchronous process.
549
555
https://docs.meilisearch.com/reference/api/tasks.html#get-one-task
550
556
551
557
Raises
@@ -573,8 +579,8 @@ def delete_document(self, document_id: str) -> TaskInfo:
573
579
574
580
Returns
575
581
-------
576
- task :
577
- Dictionary containing a task to track the informations about the progress of an asynchronous process.
582
+ TaskInfo :
583
+ TaskInfo instance containing information about a task to track the progress of an asynchronous process.
578
584
https://docs.meilisearch.com/reference/api/tasks.html#get-one-task
579
585
580
586
Raises
0 commit comments