Optimize no longer accepts refresh parameter
This commit is contained in:
@@ -641,8 +641,7 @@ class IndicesClient(NamespacedClient):
|
|||||||
|
|
||||||
@query_params('flush', 'allow_no_indices', 'expand_wildcards',
|
@query_params('flush', 'allow_no_indices', 'expand_wildcards',
|
||||||
'ignore_indices', 'ignore_unavailable', 'max_num_segments',
|
'ignore_indices', 'ignore_unavailable', 'max_num_segments',
|
||||||
'only_expunge_deletes', 'operation_threading', 'refresh',
|
'only_expunge_deletes', 'operation_threading', 'wait_for_merge')
|
||||||
'wait_for_merge')
|
|
||||||
def optimize(self, index=None, params=None):
|
def optimize(self, index=None, params=None):
|
||||||
"""
|
"""
|
||||||
Explicitly optimize one or more indices through an API.
|
Explicitly optimize one or more indices through an API.
|
||||||
@@ -666,8 +665,6 @@ class IndicesClient(NamespacedClient):
|
|||||||
:arg only_expunge_deletes: Specify whether the operation should only
|
:arg only_expunge_deletes: Specify whether the operation should only
|
||||||
expunge deleted documents
|
expunge deleted documents
|
||||||
:arg operation_threading: TODO: ?
|
:arg operation_threading: TODO: ?
|
||||||
:arg refresh: Specify whether the index should be refreshed after
|
|
||||||
performing the operation (default: true)
|
|
||||||
:arg wait_for_merge: Specify whether the request should block until the
|
:arg wait_for_merge: Specify whether the request should block until the
|
||||||
merge process is finished (default: true)
|
merge process is finished (default: true)
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user