module ElasticSearch::Transport::IndexAdminProtocol
Public Instance Methods
alias_index(operations, options={})
click to toggle source
# File lib/elasticsearch/transport/base_protocol.rb, line 122 def alias_index(operations, options={}) standard_request(:post, {:op => "_aliases"}, {}, encoder.encode(operations)) end
create_index(index, create_options={}, options={})
click to toggle source
# File lib/elasticsearch/transport/base_protocol.rb, line 114 def create_index(index, create_options={}, options={}) standard_request(:put, {:index => index}, {}, encoder.encode(create_options)) end
create_river(type, create_options={}, options={})
click to toggle source
# File lib/elasticsearch/transport/base_protocol.rb, line 166 def create_river(type, create_options={}, options={}) standard_request(:put, {:index => "_river", :type => type, :op => "_meta"}, options, encoder.encode(create_options)) end
delete_index(index, options={})
click to toggle source
# File lib/elasticsearch/transport/base_protocol.rb, line 118 def delete_index(index, options={}) standard_request(:delete, {:index => index}) end
delete_mapping(index, type, options={})
click to toggle source
# File lib/elasticsearch/transport/base_protocol.rb, line 138 def delete_mapping(index, type, options={}) standard_request(:delete, {:index => index, :type => type, :op => "_mapping"}) end
delete_river(type, options={})
click to toggle source
# File lib/elasticsearch/transport/base_protocol.rb, line 178 def delete_river(type, options={}) params = {:index => "_river"} params[:type] = type unless type.nil? standard_request(:delete, params) end
flush(index_list, options={})
click to toggle source
# File lib/elasticsearch/transport/base_protocol.rb, line 150 def flush(index_list, options={}) standard_request(:post, {:index => index_list, :op => "_flush"}, options, "") end
get_aliases(index, options={})
click to toggle source
# File lib/elasticsearch/transport/base_protocol.rb, line 126 def get_aliases(index, options={}) standard_request(:get, {:index => index, :op => "_aliases"}, options) end
get_river(type, options={})
click to toggle source
# File lib/elasticsearch/transport/base_protocol.rb, line 170 def get_river(type, options={}) standard_request(:get, {:index => "_river", :type => type, :op => "_meta"}) end
get_settings(index, options)
click to toggle source
# File lib/elasticsearch/transport/base_protocol.rb, line 146 def get_settings(index, options) standard_request(:get, {:index => index, :op => "_settings"}, options) end
index_mapping(index_list, options={})
click to toggle source
# File lib/elasticsearch/transport/base_protocol.rb, line 134 def index_mapping(index_list, options={}) standard_request(:get, {:index => index_list, :op => "_mapping"}) end
index_status(index_list, options={})
click to toggle source
# File lib/elasticsearch/transport/base_protocol.rb, line 110 def index_status(index_list, options={}) standard_request(:get, {:index => index_list, :op => "_status"}) end
optimize(index_list, options={})
click to toggle source
# File lib/elasticsearch/transport/base_protocol.rb, line 162 def optimize(index_list, options={}) standard_request(:post, {:index => index_list, :op => "_optimize"}, options, {}) end
refresh(index_list, options={})
click to toggle source
# File lib/elasticsearch/transport/base_protocol.rb, line 154 def refresh(index_list, options={}) standard_request(:post, {:index => index_list, :op => "_refresh"}, {}, "") end
river_status(type, options={})
click to toggle source
# File lib/elasticsearch/transport/base_protocol.rb, line 174 def river_status(type, options={}) standard_request(:get, {:index => "_river", :type => type, :op => "_status"}) end
snapshot(index_list, options={})
click to toggle source
# File lib/elasticsearch/transport/base_protocol.rb, line 158 def snapshot(index_list, options={}) standard_request(:post, {:index => index_list, :type => "_gateway", :op => "snapshot"}, {}, "") end
update_mapping(index, type, mapping, options)
click to toggle source
# File lib/elasticsearch/transport/base_protocol.rb, line 130 def update_mapping(index, type, mapping, options) standard_request(:put, {:index => index, :type => type, :op => "_mapping"}, options, encoder.encode(mapping)) end
update_settings(index, settings, options)
click to toggle source
# File lib/elasticsearch/transport/base_protocol.rb, line 142 def update_settings(index, settings, options) standard_request(:put, {:index => index, :op => "_settings"}, options, encoder.encode(settings)) end