Skip to content

Commit 013f587

Browse files
committed
Remove get_indexes from Index
1 parent 624eaa0 commit 013f587

File tree

2 files changed

+3
-18
lines changed

2 files changed

+3
-18
lines changed

meilisearch/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ def get_indexes(self):
5656
In case of any error found here https://docs.meilisearch.com/references/#errors-status-code
5757
Returns
5858
-------
59-
list
60-
List of indexes in dictionnary format. (e.g [{ 'uid': 'movies' 'primaryKey': 'objectID' }])
59+
indexes: list
60+
List of indexes in dictionary format. (e.g [{ 'uid': 'movies' 'primaryKey': 'objectID' }])
6161
"""
62-
return Index.get_indexes(self.config)
62+
return self.http.get(self.config.paths.index)
6363

6464
def get_index(self, uid):
6565
"""Get the index.

meilisearch/index.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -114,21 +114,6 @@ def create(cls, config, uid, options=None):
114114
index_dict = HttpRequests(config).post(config.paths.index, payload)
115115
return cls(config, index_dict['uid'], index_dict['primaryKey'])
116116

117-
@staticmethod
118-
def get_indexes(config):
119-
"""Get all indexes from meilisearch.
120-
121-
Returns
122-
-------
123-
indexes : list
124-
List of indexes (dict)
125-
Raises
126-
------
127-
HTTPError
128-
In case of any error found here https://docs.meilisearch.com/references/#errors-status-code
129-
"""
130-
return HttpRequests(config).get(config.paths.index)
131-
132117
def get_all_update_status(self):
133118
"""Get all update status from MeiliSearch
134119

0 commit comments

Comments
 (0)