Sha256: dc72eb0725e15ef35d1e75f5843084962b6e95c35826b0f0b6a17ff139c5f7db
Contents?: true
Size: 977 Bytes
Versions: 2
Compression:
Stored size: 977 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 = 'DELETE' path = Utils.__pathify( Utils.__listify(arguments[:index]), arguments[:type] ) params = {} body = nil perform_request(method, path, params, body).body end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
elasticsearch-api-0.4.0 | lib/elasticsearch/api/actions/indices/delete_mapping.rb |
elasticsearch-api-0.0.2 | lib/elasticsearch/api/actions/indices/delete_mapping.rb |