module EsHttpOperation::Helpers
Public Instance Methods
alias_index_op(action, index, als, filter)
click to toggle source
# File lib/wukong-migrate/elasticsearch_operations.rb, line 97 def alias_index_op (action, index, als, filter) AliasIndex.receive({ action: action, index: index, alias_name: als, filter: filter }.compact_blank) end
create_index_op(index, settings)
click to toggle source
# File lib/wukong-migrate/elasticsearch_operations.rb, line 81 def create_index_op(index, settings) CreateIndex.receive(index: index, settings: settings) end
delete_index_op(index, obj_type = nil)
click to toggle source
# File lib/wukong-migrate/elasticsearch_operations.rb, line 89 def delete_index_op(index, obj_type = nil) DeleteIndex.receive({ index: index, obj_type: obj_type }.compact_blank) end
update_mapping_op(index, obj_type, mapping)
click to toggle source
# File lib/wukong-migrate/elasticsearch_operations.rb, line 93 def update_mapping_op(index, obj_type, mapping) UpdateIndexMapping.receive(index: index, obj_type: obj_type, mapping: mapping) end
update_settings_op(index, settings)
click to toggle source
# File lib/wukong-migrate/elasticsearch_operations.rb, line 85 def update_settings_op(index, settings) UpdateIndexSettings.receive(index: index, settings: settings) end