@@ -32,14 +32,14 @@ def create_index(self, uid, options=None):
32
32
Parameters
33
33
----------
34
34
uid: str
35
- UID of the index.
35
+ UID of the index
36
36
options: dict, optional
37
- Options passed during index creation (ex: primaryKey).
37
+ Options passed during index creation (ex: primaryKey)
38
38
39
39
Returns
40
40
-------
41
41
index : Index
42
- An instance of Index containing the information of the newly created index.
42
+ an instance of Index containing the information of the newly created index
43
43
Raises
44
44
------
45
45
HTTPError
@@ -57,8 +57,8 @@ def get_indexes(self):
57
57
In case of any error found here https://docs.meilisearch.com/references/#errors-status-code
58
58
Returns
59
59
-------
60
- indexes: list
61
- List of indexes in dictionary format. (e.g [{ 'uid': 'movies' 'primaryKey': 'objectID' }])
60
+ list
61
+ List of indexes in dictionnary format. (e.g [{ 'uid': 'movies' 'primaryKey': 'objectID' }])
62
62
"""
63
63
return Index .list_all (self .config )
64
64
@@ -133,30 +133,29 @@ def get_all_stats(self):
133
133
134
134
Get information about database size and all indexes
135
135
https://docs.meilisearch.com/references/stats.html
136
-
137
136
Returns
138
- -------
137
+ ----------
139
138
stats: `dict`
140
- Dictionary containing stats about your MeiliSearch instance.
139
+ Dictionnary containing stats about your MeiliSearch instance
141
140
"""
142
141
return self .http .get (self .config .paths .stat )
143
142
144
143
def health (self ):
145
- """Get health of the MeiliSearch server.
144
+ """Get health of MeiliSearch
146
145
147
146
`204` HTTP status response when MeiliSearch is healthy.
148
147
149
148
Raises
150
149
----------
151
150
HTTPError
152
- If MeiliSearch is not healthy.
151
+ If MeiliSearch is not healthy
153
152
"""
154
153
return self .http .get (self .config .paths .health )
155
154
156
155
def get_keys (self ):
157
- """Get all keys.
156
+ """Get all keys created
158
157
159
- Get list of all the keys.
158
+ Get list of all the keys that were created and all their related information .
160
159
161
160
Returns
162
161
----------
@@ -187,7 +186,7 @@ def version(self):
187
186
return self .get_version ()
188
187
189
188
def create_dump (self ):
190
- """Trigger the creation of a MeiliSearch dump.
189
+ """Triggers the creation of a MeiliSearch dump
191
190
192
191
Returns
193
192
----------
@@ -198,15 +197,15 @@ def create_dump(self):
198
197
return self .http .post (self .config .paths .dumps )
199
198
200
199
def get_dump_status (self , uid ):
201
- """Retrieve the status of a MeiliSearch dump creation.
200
+ """Retrieves the status of a MeiliSearch dump creation
202
201
203
202
Parameters
204
203
----------
205
204
uid: str
206
- UID of the dump.
205
+ UID of the dump
207
206
208
207
Returns
209
- -------
208
+ ----------
210
209
Dump status: dict
211
210
Information about the dump status.
212
211
https://docs.meilisearch.com/references/dump.html#get-dump-status
0 commit comments