class EsHttpOperation::AliasIndex
Public Instance Methods
body()
click to toggle source
# File lib/wukong-migrate/elasticsearch_operations.rb, line 65 def body() { actions: [{ action => { index: index, alias: alias_name, filter: filter }.compact_blank }]} ; end
info()
click to toggle source
# File lib/wukong-migrate/elasticsearch_operations.rb, line 67 def info() "#{action.capitalize} alias :#{alias_name} for index #{index}" ; end
path()
click to toggle source
# File lib/wukong-migrate/elasticsearch_operations.rb, line 64 def path() '/_aliases?' ; end
verb()
click to toggle source
# File lib/wukong-migrate/elasticsearch_operations.rb, line 66 def verb() :post ; end