diff --git a/lib/elastomer_client/client/reindex.rb b/lib/elastomer_client/client/reindex.rb index 883f17a0..903b5043 100644 --- a/lib/elastomer_client/client/reindex.rb +++ b/lib/elastomer_client/client/reindex.rb @@ -20,12 +20,12 @@ def initialize(client) attr_reader :client def reindex(body, params = {}) - response = client.post "/_reindex", params.merge(params, body:, action: "reindex", rest_api: "reindex") + response = client.post "/_reindex", params.merge(body:, action: "reindex", rest_api: "reindex") response.body end def rethrottle(task_id, params = {}) - response = client.post "/_reindex/#{task_id}/_rethrottle", params.merge(params, action: "rethrottle", rest_api: "reindex") + response = client.post "/_reindex/#{task_id}/_rethrottle", params.merge(action: "rethrottle", rest_api: "reindex") response.body end