Sha256: 19ec39cd0a79ed9f7507042d2207e2403fcf90de9562b7530f91902a32cd3303

Contents?: true

Size: 908 Bytes

Versions: 2

Compression:

Stored size: 908 Bytes

Contents

# Licensed to Elasticsearch B.V under one or more agreements.
# Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
# See the LICENSE file in the project root for more information

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

2 entries across 2 versions & 1 rubygems

Version Path
elasticsearch-api-6.8.3 lib/elasticsearch/api/actions/indices/seal.rb
elasticsearch-api-6.8.2 lib/elasticsearch/api/actions/indices/seal.rb