module ElasticSearch::Transport::IndexAdminProtocol

Public Instance Methods

alias_index(operations, options={}) click to toggle source
# File lib/elasticsearch/transport/base_protocol.rb, line 120
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 112
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 164
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 116
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 136
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 176
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 148
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 124
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 168
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 144
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 132
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 108
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 160
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 152
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 172
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 156
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 128
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 140
def update_settings(index, settings, options)
  standard_request(:put, {:index => index, :op => "_settings"}, options, encoder.encode(settings))
end