Sha256: 2b757d499feace8d24e6cfd47c792ad7fa894f0254f79e362e4cb5bc13cff8d5

Contents?: true

Size: 1.37 KB

Versions: 19

Compression:

Stored size: 1.37 KB

Contents

module Elasticsearch
  module API
    module Indices
      module Actions

        # Delete one or more warmers for a list of indices.
        #
        # @example Delete a warmer named _mywarmer_ for index named _myindex_
        #
        #     client.indices.delete_warmer index: 'myindex', name: 'mywarmer'
        #
        # @option arguments [List] :index A comma-separated list of index names to register warmer for; use `_all`
        #                                 or empty string to perform the operation on all indices (*Required*)
        # @option arguments [String] :name The name of the warmer (supports wildcards); leave empty to delete all warmers
        # @option arguments [List] :type A comma-separated list of document types to register warmer for; use `_all`
        #                                or empty string to perform the operation on all types
        #
        # @see http://www.elasticsearch.org/guide/reference/api/admin-indices-warmers/
        #
        def delete_warmer(arguments={})
          raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
          method = 'DELETE'
          path   = Utils.__pathify Utils.__listify(arguments[:index]), '_warmer', Utils.__listify(arguments[:name])
          params = {}
          body = nil

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

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
elasticsearch-api-1.0.6 lib/elasticsearch/api/actions/indices/delete_warmer.rb
elasticsearch-api-1.0.5 lib/elasticsearch/api/actions/indices/delete_warmer.rb
elasticsearch-api-1.0.4 lib/elasticsearch/api/actions/indices/delete_warmer.rb
elasticsearch-api-1.0.2 lib/elasticsearch/api/actions/indices/delete_warmer.rb
elasticsearch-api-1.0.1 lib/elasticsearch/api/actions/indices/delete_warmer.rb
elasticsearch-api-1.0.0 lib/elasticsearch/api/actions/indices/delete_warmer.rb
elasticsearch-api-0.4.11 lib/elasticsearch/api/actions/indices/delete_warmer.rb
elasticsearch-api-0.4.10 lib/elasticsearch/api/actions/indices/delete_warmer.rb
elasticsearch-api-0.4.9 lib/elasticsearch/api/actions/indices/delete_warmer.rb
elasticsearch-api-1.0.0.rc2 lib/elasticsearch/api/actions/indices/delete_warmer.rb
elasticsearch-api-1.0.0.rc1 lib/elasticsearch/api/actions/indices/delete_warmer.rb
elasticsearch-api-0.4.8 lib/elasticsearch/api/actions/indices/delete_warmer.rb
elasticsearch-api-0.4.7 lib/elasticsearch/api/actions/indices/delete_warmer.rb
elasticsearch-api-0.4.6 lib/elasticsearch/api/actions/indices/delete_warmer.rb
elasticsearch-api-0.4.5 lib/elasticsearch/api/actions/indices/delete_warmer.rb
elasticsearch-api-0.4.4 lib/elasticsearch/api/actions/indices/delete_warmer.rb
elasticsearch-api-0.4.3 lib/elasticsearch/api/actions/indices/delete_warmer.rb
elasticsearch-api-0.4.2 lib/elasticsearch/api/actions/indices/delete_warmer.rb
elasticsearch-api-0.4.1 lib/elasticsearch/api/actions/indices/delete_warmer.rb