Class: EsHttpOperation::AliasIndex

Inherits:
EsHttpOperation show all
Defined in:
lib/wukong-migrate/elasticsearch_operations.rb

Instance Method Summary collapse

Methods inherited from EsHttpOperation

#call_own_http_method, #configure_with, #execute, #json_body, #raw_curl_string

Instance Method Details

#bodyObject



65
# File 'lib/wukong-migrate/elasticsearch_operations.rb', line 65

def body() { actions: [{ action => { index: index, alias: alias_name, filter: filter }.compact_blank }]} ; end

#infoObject



67
# File 'lib/wukong-migrate/elasticsearch_operations.rb', line 67

def info() "#{action.capitalize} alias :#{alias_name} for index #{index}"                                ; end

#pathObject



64
# File 'lib/wukong-migrate/elasticsearch_operations.rb', line 64

def path() '/_aliases?'                                                                                  ; end

#verbObject



66
# File 'lib/wukong-migrate/elasticsearch_operations.rb', line 66

def verb() :post                                                                                         ; end