Sha256: 4b44ae33f8d6cade61553b4f8e5b9443809a96e578857b26ac8afefcfd91d0b7

Contents?: true

Size: 993 Bytes

Versions: 73

Compression:

Stored size: 993 Bytes

Contents

module Elasticsearch
  module API
    module Indices
      module Actions

        # Delete all documents and mapping for a specific document type.
        #
        # @option arguments [List] :index A comma-separated list of index names; use `_all` for all indices (*Required*)
        # @option arguments [String] :type The name of the document type to delete (*Required*)
        #
        # @see http://www.elasticsearch.org/guide/reference/api/admin-indices-delete-mapping/
        #
        def delete_mapping(arguments={})
          raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
          raise ArgumentError, "Required argument 'type' missing"  unless arguments[:type]
          method = HTTP_DELETE
          path   = Utils.__pathify Utils.__listify(arguments[:index]), Utils.__escape(arguments[:type])
          params = {}
          body   = nil

          perform_request(method, path, params, body).body
        end
      end
    end
  end
end

Version data entries

73 entries across 73 versions & 6 rubygems

Version Path
elasticsearch-api-1.0.18 lib/elasticsearch/api/actions/indices/delete_mapping.rb
elasticsearch-api-1.0.17 lib/elasticsearch/api/actions/indices/delete_mapping.rb
elasticsearch-api-1.0.16 lib/elasticsearch/api/actions/indices/delete_mapping.rb
elasticsearch-api-1.0.16.pre2 lib/elasticsearch/api/actions/indices/delete_mapping.rb
elasticsearch-api-1.0.16.pre lib/elasticsearch/api/actions/indices/delete_mapping.rb
elasticsearch-api-1.0.15 lib/elasticsearch/api/actions/indices/delete_mapping.rb
elasticsearch-api-1.0.14 lib/elasticsearch/api/actions/indices/delete_mapping.rb
elasticsearch-api-1.0.13 lib/elasticsearch/api/actions/indices/delete_mapping.rb
elasticsearch-api-1.0.12 lib/elasticsearch/api/actions/indices/delete_mapping.rb
elasticsearch-api-1.0.11 lib/elasticsearch/api/actions/indices/delete_mapping.rb
elasticsearch-api-1.0.10 lib/elasticsearch/api/actions/indices/delete_mapping.rb
elasticsearch-api-1.0.9 lib/elasticsearch/api/actions/indices/delete_mapping.rb
elasticsearch-api-1.0.7 lib/elasticsearch/api/actions/indices/delete_mapping.rb