@@ -49,6 +49,12 @@ def __init__(
49
49
def delete (self ) -> dict [str , Any ]:
50
50
"""Delete the index.
51
51
52
+ Returns
53
+ -------
54
+ task_info:
55
+ TaskInfo instance containing information about a task to track the progress of an asynchronous process.
56
+ https://docs.meilisearch.com/reference/api/tasks.html#get-one-task
57
+
52
58
Raises
53
59
------
54
60
MeiliSearchApiError
@@ -67,8 +73,8 @@ def update(self, primary_key: str) -> dict[str, Any]:
67
73
68
74
Returns
69
75
-------
70
- task :
71
- Dictionary containing a task to track the informations about the progress of an asynchronous process.
76
+ task_info :
77
+ TaskInfo instance containing information about a task to track the progress of an asynchronous process.
72
78
https://docs.meilisearch.com/reference/api/tasks.html#get-one-task
73
79
74
80
Raises
@@ -116,8 +122,8 @@ def create(config: Config, uid: str, options: dict[str, Any] | None = None) -> d
116
122
117
123
Returns
118
124
-------
119
- task :
120
- Dictionary containing a task to track the informations about the progress of an asynchronous process.
125
+ task_info :
126
+ TaskInfo instance containing information about a task to track the progress of an asynchronous process.
121
127
https://docs.meilisearch.com/reference/api/tasks.html#get-one-task
122
128
123
129
Raises
@@ -136,8 +142,7 @@ def get_tasks(self, parameters: dict[str, Any] | None = None) -> TaskResults:
136
142
Parameters
137
143
----------
138
144
parameters (optional):
139
- parameters accepted by the get tasks route: https://docs.meilisearch.com/reference/api/tasks.html#get-all-tasks.
140
- `indexUid` should be set as a List.
145
+ parameters accepted by the get tasks route: https://docs.meilisearch.com/reference/api/tasks.html#get-tasks.
141
146
142
147
Returns
143
148
-------
@@ -154,9 +159,9 @@ def get_tasks(self, parameters: dict[str, Any] | None = None) -> TaskResults:
154
159
An error containing details about why Meilisearch can't process your request. Meilisearch error codes are described here: https://docs.meilisearch.com/errors/#meilisearch-errors
155
160
"""
156
161
if parameters is not None :
157
- parameters .setdefault ("indexUid " , []).append (self .uid )
162
+ parameters .setdefault ("indexUids " , []).append (self .uid )
158
163
else :
159
- parameters = {"indexUid " : [self .uid ]}
164
+ parameters = {"indexUids " : [self .uid ]}
160
165
161
166
tasks = get_tasks (self .config , parameters = parameters )
162
167
return TaskResults (tasks )
@@ -756,8 +761,8 @@ def update_settings(self, body: dict[str, Any]) -> dict[str, Any]:
756
761
757
762
Returns
758
763
-------
759
- task :
760
- Dictionary containing a task to track the informations about the progress of an asynchronous process.
764
+ task_info :
765
+ TaskInfo instance containing information about a task to track the progress of an asynchronous process.
761
766
https://docs.meilisearch.com/reference/api/tasks.html#get-one-task
762
767
763
768
Raises
@@ -776,8 +781,8 @@ def reset_settings(self) -> dict[str, Any]:
776
781
777
782
Returns
778
783
-------
779
- task :
780
- Dictionary containing a task to track the informations about the progress of an asynchronous process.
784
+ task_info :
785
+ TaskInfo instance containing information about a task to track the progress of an asynchronous process.
781
786
https://docs.meilisearch.com/reference/api/tasks.html#get-one-task
782
787
783
788
Raises
@@ -814,8 +819,8 @@ def update_ranking_rules(self, body: list[str]) -> dict[str, Any]:
814
819
815
820
Returns
816
821
-------
817
- task :
818
- Dictionary containing a task to track the informations about the progress of an asynchronous process.
822
+ task_info :
823
+ TaskInfo instance containing information about a task to track the progress of an asynchronous process.
819
824
https://docs.meilisearch.com/reference/api/tasks.html#get-one-task
820
825
821
826
Raises
@@ -830,8 +835,8 @@ def reset_ranking_rules(self) -> dict[str, Any]:
830
835
831
836
Returns
832
837
-------
833
- task :
834
- Dictionary containing a task to track the informations about the progress of an asynchronous process.
838
+ task_info :
839
+ TaskInfo instance containing information about a task to track the progress of an asynchronous process.
835
840
https://docs.meilisearch.com/reference/api/tasks.html#get-one-task
836
841
837
842
Raises
@@ -870,8 +875,8 @@ def update_distinct_attribute(self, body: dict[str, Any]) -> dict[str, Any]:
870
875
871
876
Returns
872
877
-------
873
- task :
874
- Dictionary containing a task to track the informations about the progress of an asynchronous process.
878
+ task_info :
879
+ TaskInfo instance containing information about a task to track the progress of an asynchronous process.
875
880
https://docs.meilisearch.com/reference/api/tasks.html#get-one-task
876
881
877
882
Raises
@@ -886,8 +891,8 @@ def reset_distinct_attribute(self) -> dict[str, Any]:
886
891
887
892
Returns
888
893
-------
889
- task :
890
- Dictionary containing a task to track the informations about the progress of an asynchronous process.
894
+ task_info :
895
+ TaskInfo instance containing information about a task to track the progress of an asynchronous process.
891
896
https://docs.meilisearch.com/reference/api/tasks.html#get-one-task
892
897
893
898
Raises
@@ -926,8 +931,8 @@ def update_searchable_attributes(self, body: list[str]) -> dict[str, Any]:
926
931
927
932
Returns
928
933
-------
929
- task :
930
- Dictionary containing a task to track the informations about the progress of an asynchronous process.
934
+ task_info :
935
+ TaskInfo instance containing information about a task to track the progress of an asynchronous process.
931
936
https://docs.meilisearch.com/reference/api/tasks.html#get-one-task
932
937
933
938
Raises
@@ -942,8 +947,8 @@ def reset_searchable_attributes(self) -> dict[str, Any]:
942
947
943
948
Returns
944
949
-------
945
- task :
946
- Dictionary containing a task to track the informations about the progress of an asynchronous process.
950
+ task_info :
951
+ TaskInfo instance containing information about a task to track the progress of an asynchronous process.
947
952
https://docs.meilisearch.com/reference/api/tasks.html#get-one-task
948
953
949
954
Raises
@@ -982,8 +987,8 @@ def update_displayed_attributes(self, body: list[str]) -> dict[str, Any]:
982
987
983
988
Returns
984
989
-------
985
- task :
986
- Dictionary containing a task to track the informations about the progress of an asynchronous process.
990
+ task_info :
991
+ TaskInfo instance containing information about a task to track the progress of an asynchronous process.
987
992
https://docs.meilisearch.com/reference/api/tasks.html#get-one-task
988
993
989
994
Raises
@@ -998,8 +1003,8 @@ def reset_displayed_attributes(self) -> dict[str, Any]:
998
1003
999
1004
Returns
1000
1005
-------
1001
- task :
1002
- Dictionary containing a task to track the informations about the progress of an asynchronous process.
1006
+ task_info :
1007
+ TaskInfo instance containing information about a task to track the progress of an asynchronous process.
1003
1008
https://docs.meilisearch.com/reference/api/tasks.html#get-one-task
1004
1009
1005
1010
Raises
@@ -1038,8 +1043,8 @@ def update_stop_words(self, body: list[str]) -> dict[str, Any]:
1038
1043
1039
1044
Returns
1040
1045
-------
1041
- task :
1042
- Dictionary containing a task to track the informations about the progress of an asynchronous process.
1046
+ task_info :
1047
+ TaskInfo instance containing information about a task to track the progress of an asynchronous process.
1043
1048
https://docs.meilisearch.com/reference/api/tasks.html#get-one-task
1044
1049
1045
1050
Raises
@@ -1054,8 +1059,8 @@ def reset_stop_words(self) -> dict[str, Any]:
1054
1059
1055
1060
Returns
1056
1061
-------
1057
- task :
1058
- Dictionary containing a task to track the informations about the progress of an asynchronous process.
1062
+ task_info :
1063
+ TaskInfo instance containing information about a task to track the progress of an asynchronous process.
1059
1064
https://docs.meilisearch.com/reference/api/tasks.html#get-one-task
1060
1065
1061
1066
Raises
@@ -1094,8 +1099,8 @@ def update_synonyms(self, body: dict[str, list[str]]) -> dict[str, Any]:
1094
1099
1095
1100
Returns
1096
1101
-------
1097
- task :
1098
- Dictionary containing a task to track the informations about the progress of an asynchronous process.
1102
+ task_info :
1103
+ TaskInfo instance containing information about a task to track the progress of an asynchronous process.
1099
1104
https://docs.meilisearch.com/reference/api/tasks.html#get-one-task
1100
1105
1101
1106
Raises
@@ -1110,8 +1115,8 @@ def reset_synonyms(self) -> dict[str, Any]:
1110
1115
1111
1116
Returns
1112
1117
-------
1113
- task :
1114
- Dictionary containing a task to track the informations about the progress of an asynchronous process.
1118
+ task_info :
1119
+ TaskInfo instance containing information about a task to track the progress of an asynchronous process.
1115
1120
https://docs.meilisearch.com/reference/api/tasks.html#get-one-task
1116
1121
1117
1122
Raises
@@ -1150,8 +1155,8 @@ def update_filterable_attributes(self, body: list[str]) -> dict[str, Any]:
1150
1155
1151
1156
Returns
1152
1157
-------
1153
- task :
1154
- Dictionary containing a task to track the informations about the progress of an asynchronous process.
1158
+ task_info :
1159
+ TaskInfo instance containing information about a task to track the progress of an asynchronous process.
1155
1160
https://docs.meilisearch.com/reference/api/tasks.html#get-one-task
1156
1161
1157
1162
Raises
@@ -1166,8 +1171,8 @@ def reset_filterable_attributes(self) -> dict[str, Any]:
1166
1171
1167
1172
Returns
1168
1173
-------
1169
- task :
1170
- Dictionary containing a task to track the informations about the progress of an asynchronous process.
1174
+ task_info :
1175
+ TaskInfo instance containing information about a task to track the progress of an asynchronous process.
1171
1176
https://docs.meilisearch.com/reference/api/tasks.html#get-one-task
1172
1177
1173
1178
Raises
@@ -1206,8 +1211,8 @@ def update_sortable_attributes(self, body: list[str]) -> dict[str, Any]:
1206
1211
1207
1212
Returns
1208
1213
-------
1209
- task :
1210
- Dictionary containing a task to track the informations about the progress of an asynchronous process.
1214
+ task_info :
1215
+ TaskInfo instance containing information about a task to track the progress of an asynchronous process.
1211
1216
https://docs.meilisearch.com/reference/api/tasks.html#get-one-task
1212
1217
1213
1218
Raises
@@ -1222,8 +1227,8 @@ def reset_sortable_attributes(self) -> dict[str, Any]:
1222
1227
1223
1228
Returns
1224
1229
-------
1225
- task :
1226
- Dictionary containing a task to track the informations about the progress of an asynchronous process.
1230
+ task_info :
1231
+ TaskInfo instance containing information about a task to track the progress of an asynchronous process.
1227
1232
https://docs.meilisearch.com/reference/api/tasks.html#get-one-task
1228
1233
1229
1234
Raises
@@ -1262,8 +1267,8 @@ def update_typo_tolerance(self, body: dict[str, Any]) -> dict[str, Any]:
1262
1267
1263
1268
Returns
1264
1269
-------
1265
- task :
1266
- Dictionary containing a task to track the informations about the progress of an asynchronous process.
1270
+ task_info :
1271
+ TaskInfo instance containing information about a task to track the progress of an asynchronous process.
1267
1272
https://docs.meilisearch.com/reference/api/tasks.html#get-one-task
1268
1273
1269
1274
Raises
@@ -1278,8 +1283,8 @@ def reset_typo_tolerance(self) -> dict[str, Any]:
1278
1283
1279
1284
Returns
1280
1285
-------
1281
- task :
1282
- Dictionary containing a task to track the informations about the progress of an asynchronous process.
1286
+ task_info :
1287
+ TaskInfo instance containing information about a task to track the progress of an asynchronous process.
1283
1288
https://docs.meilisearch.com/reference/api/tasks.html#get-one-task
1284
1289
1285
1290
Raises
@@ -1317,8 +1322,8 @@ def update_pagination_settings(self, body: dict[str, Any]) -> dict[str, Any]:
1317
1322
1318
1323
Returns
1319
1324
-------
1320
- task :
1321
- Dictionary containing a task to track the informations about the progress of an asynchronous process.
1325
+ task_info :
1326
+ TaskInfo instance containing information about a task to track the progress of an asynchronous process.
1322
1327
https://docs.meilisearch.com/reference/api/tasks.html#get-one-task
1323
1328
1324
1329
Raises
@@ -1335,8 +1340,8 @@ def reset_pagination_settings(self) -> dict[str, Any]:
1335
1340
1336
1341
Returns
1337
1342
-------
1338
- task :
1339
- Dictionary containing a task to track the informations about the progress of an asynchronous process.
1343
+ task_info :
1344
+ TaskInfo instance containing information about a task to track the progress of an asynchronous process.
1340
1345
https://docs.meilisearch.com/reference/api/tasks.html#get-one-task
1341
1346
1342
1347
Raises
@@ -1373,8 +1378,8 @@ def update_faceting_settings(self, body: dict[str, Any]) -> dict[str, Any]:
1373
1378
1374
1379
Returns
1375
1380
-------
1376
- task :
1377
- Dictionary containing a task to track the informations about the progress of an asynchronous process.
1381
+ task_info :
1382
+ TaskInfo instance containing information about a task to track the progress of an asynchronous process.
1378
1383
https://docs.meilisearch.com/reference/api/tasks.html#get-one-task
1379
1384
1380
1385
Raises
@@ -1389,8 +1394,8 @@ def reset_faceting_settings(self) -> dict[str, Any]:
1389
1394
1390
1395
Returns
1391
1396
-------
1392
- task :
1393
- Dictionary containing a task to track the informations about the progress of an asynchronous process.
1397
+ task_info :
1398
+ TaskInfo instance containing information about a task to track the progress of an asynchronous process.
1394
1399
https://docs.meilisearch.com/reference/api/tasks.html#get-one-task
1395
1400
1396
1401
Raises
0 commit comments