Purge duplicities in args

This commit is contained in:
Honza Král
2015-08-28 17:41:04 +02:00
parent a2d8fa4637
commit 4f7b09df5b
2 changed files with 4 additions and 8 deletions
+1 -3
View File
@@ -250,8 +250,7 @@ class CatClient(NamespacedClient):
params=params) params=params)
return data return data
@query_params('bytes', 'fields', 'h', 'help', 'local', 'master_timeout', @query_params('bytes', 'h', 'help', 'local', 'master_timeout', 'v')
'v')
def fielddata(self, fields=None, params=None): def fielddata(self, fields=None, params=None):
""" """
Shows information about currently loaded fielddata on a per-node basis. Shows information about currently loaded fielddata on a per-node basis.
@@ -261,7 +260,6 @@ class CatClient(NamespacedClient):
size size
:arg bytes: The unit in which to display byte values, valid choices are: :arg bytes: The unit in which to display byte values, valid choices are:
'b', 'k', 'm', 'g' '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 h: Comma-separated list of column names to display
:arg help: Return help information, default False :arg help: Return help information, default False
:arg local: Return local information, do not retrieve the state from :arg local: Return local information, do not retrieve the state from
+3 -5
View File
@@ -3,7 +3,7 @@ from ..exceptions import NotFoundError
class IndicesClient(NamespacedClient): class IndicesClient(NamespacedClient):
@query_params('analyzer', 'char_filters', 'field', 'filters', 'format', @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): def analyze(self, index=None, body=None, params=None):
""" """
Perform the analysis process on a text and return the tokens breakdown of the text. 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 filters: A comma-separated list of filters to use for the analysis
:arg format: Format of the output, default 'detailed', valid choices :arg format: Format of the output, default 'detailed', valid choices
are: 'detailed', 'text' 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 :arg prefer_local: With `true`, specify that a local shard should be
used if available, with `false`, use a random shard (default: true) used if available, with `false`, use a random shard (default: true)
:arg text: The text on which the analysis should be performed (when :arg text: The text on which the analysis should be performed (when
@@ -864,8 +863,8 @@ class IndicesClient(NamespacedClient):
return data return data
@query_params('allow_no_indices', 'expand_wildcards', 'field_data', @query_params('allow_no_indices', 'expand_wildcards', 'field_data',
'fielddata', 'fields', 'ignore_unavailable', 'index', 'query', 'fielddata', 'fields', 'ignore_unavailable', 'query', 'recycler',
'recycler', 'request') 'request')
def clear_cache(self, index=None, params=None): def clear_cache(self, index=None, params=None):
""" """
Clear either all caches or specific cached associated with one ore more indices. 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) `field_data` parameter (default: all)
:arg ignore_unavailable: Whether specified concrete indices should be :arg ignore_unavailable: Whether specified concrete indices should be
ignored when unavailable (missing or closed) 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 query: Clear query caches
:arg recycler: Clear the recycler cache :arg recycler: Clear the recycler cache
:arg request: Clear request cache :arg request: Clear request cache