class ElastomerClient::Client::Reindex
Attributes
client[R]
Public Class Methods
new(client)
click to toggle source
Create a new Reindex
for initiating reindex tasks. More context: www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html
client - ElastomerClient::Client
used for HTTP requests to the server
# File lib/elastomer_client/client/reindex.rb, line 16 def initialize(client) @client = client end
Public Instance Methods
reindex(body, params = {})
click to toggle source
# File lib/elastomer_client/client/reindex.rb, line 22 def reindex(body, params = {}) response = client.post "/_reindex", params.merge(params, body:, action: "reindex", rest_api: "reindex") response.body end