From 0954a60312fa60505cb66d89f1848152834f05a3 Mon Sep 17 00:00:00 2001 From: Honza Kral Date: Thu, 11 Jul 2013 02:00:17 +0200 Subject: [PATCH] info endpoint --- elasticsearch/client/__init__.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/elasticsearch/client/__init__.py b/elasticsearch/client/__init__.py index 6f08b4d6..52ae06fb 100644 --- a/elasticsearch/client/__init__.py +++ b/elasticsearch/client/__init__.py @@ -56,6 +56,17 @@ class Elasticsearch(object): self.indices = IndicesClient(self) self.cluster = ClusterClient(self) + @query_params() + def info(self, params=None): + """ + Want to learn from the creators and advance your data-driven superpowers. + http://elasticsearch.org/guide/ + + + """ + status, data = self.transport.perform_request('GET', '/', params=params) + return data + @query_params('consistency', 'id', 'parent', 'percolate', 'refresh', 'replication', 'routing', 'timeout', 'timestamp', 'ttl', 'version', 'version_type') def create(self, index, doc_type, body, id=None, params=None): """