Sha256: 4937f4b03d1ae5b44b5cb2c88c667fbf7b74752c307b8dd19a8f9138573df16f

Contents?: true

Size: 705 Bytes

Versions: 66

Compression:

Stored size: 705 Bytes

Contents

module Elasticsearch
  module API
    module Indices
      module Actions

        # "Seal" and index or indices for faster recovery
        #
        # @option arguments [List] :index A comma-separated list of index names;
        #                                 use `_all` or empty string for all indices
        #
        # @see http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-seal.html
        #
        def seal(arguments={})
          method = 'POST'
          path   = Utils.__pathify Utils.__listify(arguments[:index]), '_seal'
          params = {}
          body   = nil

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

Version data entries

66 entries across 66 versions & 6 rubygems

Version Path
elasticsearch-api-1.0.18 lib/elasticsearch/api/actions/indices/seal.rb
elasticsearch-api-1.0.17 lib/elasticsearch/api/actions/indices/seal.rb
elasticsearch-api-1.0.16 lib/elasticsearch/api/actions/indices/seal.rb
elasticsearch-api-1.0.16.pre2 lib/elasticsearch/api/actions/indices/seal.rb
elasticsearch-api-1.0.16.pre lib/elasticsearch/api/actions/indices/seal.rb
elasticsearch-api-1.0.15 lib/elasticsearch/api/actions/indices/seal.rb