diff --git a/pyes/es.py b/pyes/es.py index db5553e8..e883b5ce 100644 --- a/pyes/es.py +++ b/pyes/es.py @@ -1365,6 +1365,14 @@ def delete_river(self, river, river_name=None): return self._send_request('DELETE', '/_river/%s/' % river_name) #--- settings management + + def get_settings(self, index=None): + """ + Returns the current settings for an index. + """ + path = self._make_path([index, "_settings"]) + return self._send_request('GET', path) + def update_settings(self, index, newvalues): """ Update Settings of an index. @@ -1668,7 +1676,7 @@ def next(self): def __iter__(self): self.iterpos = 0 if self._current_item != 0: - self._results = None + self._results = None self._current_item = 0 self.start = 0