lib/elasticsearch/api/actions/cluster/reroute.rb in elasticsearch-api-1.0.17 vs lib/elasticsearch/api/actions/cluster/reroute.rb in elasticsearch-api-1.0.18
- old
+ new
@@ -24,14 +24,16 @@
# @option arguments [Boolean] :explain Return an explanation for why the commands can or cannot be executed
# @option arguments [Boolean] :metric Limit the information returned to the specified metrics.
# Defaults to all but metadata. (Options: _all, blocks, metadata,
# nodes, routing_table, master_node, version)
# @option arguments [Time] :master_timeout Specify timeout for connection to master
+ # @option arguments [Boolean] :retry_failed Retries allocation of shards that are blocked due to too many
+ # subsequent allocation failures
#
# @see http://elasticsearch.org/guide/reference/api/admin-cluster-reroute/
#
def reroute(arguments={})
- valid_params = [ :dry_run, :explain, :metric, :master_timeout, :timeout ]
+ valid_params = [ :dry_run, :explain, :metric, :master_timeout, :retry_failed, :timeout ]
method = HTTP_POST
path = "_cluster/reroute"
params = Utils.__validate_and_extract_params arguments, valid_params