module Elasticsearch::Extensions::Reindex::API
Public Instance Methods
reindex(arguments={})
click to toggle source
Copy documents from one index into another and refresh the destination index
@example
client.reindex source: { index: 'test1' }, dest: { index: 'test2' }, refresh: true
The method allows all the options as {Reindex::Reindex.new}.
This method will be mixed into the Elasticsearch
client's API
, if available.
# File lib/elasticsearch/extensions/reindex.rb, line 52 def reindex(arguments={}) arguments[:source] ||= {} arguments[:source][:client] = self Reindex.new(arguments).perform end