From 4f7b09df5b255c54e40426183df427926c37d247 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kr=C3=A1l?= Date: Fri, 28 Aug 2015 17:41:04 +0200 Subject: [PATCH] Purge duplicities in args --- elasticsearch/client/cat.py | 4 +--- elasticsearch/client/indices.py | 8 +++----- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/elasticsearch/client/cat.py b/elasticsearch/client/cat.py index f1781c8e..1d8d7099 100644 --- a/elasticsearch/client/cat.py +++ b/elasticsearch/client/cat.py @@ -250,8 +250,7 @@ class CatClient(NamespacedClient): params=params) return data - @query_params('bytes', 'fields', 'h', 'help', 'local', 'master_timeout', - 'v') + @query_params('bytes', 'h', 'help', 'local', 'master_timeout', 'v') def fielddata(self, fields=None, params=None): """ Shows information about currently loaded fielddata on a per-node basis. @@ -261,7 +260,6 @@ class CatClient(NamespacedClient): size :arg bytes: The unit in which to display byte values, valid choices are: 'b', 'k', 'm', 'g' - :arg fields: A comma-separated list of fields to return in the output :arg h: Comma-separated list of column names to display :arg help: Return help information, default False :arg local: Return local information, do not retrieve the state from diff --git a/elasticsearch/client/indices.py b/elasticsearch/client/indices.py index 67fc3fec..7c4dc3c9 100644 --- a/elasticsearch/client/indices.py +++ b/elasticsearch/client/indices.py @@ -3,7 +3,7 @@ from ..exceptions import NotFoundError class IndicesClient(NamespacedClient): @query_params('analyzer', 'char_filters', 'field', 'filters', 'format', - 'index', 'prefer_local', 'text', 'tokenizer') + 'prefer_local', 'text', 'tokenizer') def analyze(self, index=None, body=None, params=None): """ Perform the analysis process on a text and return the tokens breakdown of the text. @@ -19,7 +19,6 @@ class IndicesClient(NamespacedClient): :arg filters: A comma-separated list of filters to use for the analysis :arg format: Format of the output, default 'detailed', valid choices are: 'detailed', 'text' - :arg index: The name of the index to scope the operation :arg prefer_local: With `true`, specify that a local shard should be used if available, with `false`, use a random shard (default: true) :arg text: The text on which the analysis should be performed (when @@ -864,8 +863,8 @@ class IndicesClient(NamespacedClient): return data @query_params('allow_no_indices', 'expand_wildcards', 'field_data', - 'fielddata', 'fields', 'ignore_unavailable', 'index', 'query', - 'recycler', 'request') + 'fielddata', 'fields', 'ignore_unavailable', 'query', 'recycler', + 'request') def clear_cache(self, index=None, params=None): """ Clear either all caches or specific cached associated with one ore more indices. @@ -884,7 +883,6 @@ class IndicesClient(NamespacedClient): `field_data` parameter (default: all) :arg ignore_unavailable: Whether specified concrete indices should be ignored when unavailable (missing or closed) - :arg index: A comma-separated list of index name to limit the operation :arg query: Clear query caches :arg recycler: Clear the recycler cache :arg request: Clear request cache