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



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

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

#infoObject



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

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

#pathObject



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

def path() '/_aliases?'                                                    ; end

#verbObject



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

def verb() :post                                                           ; end