Sha256: eb9e869bd40b8f2ea5bfc1c7e5732d5d9ef7a429b27bf7b985490bcbef42d191

Contents?: true

Size: 1.01 KB

Versions: 7

Compression:

Stored size: 1.01 KB

Contents

module Elasticsearch
  module API
    module Indices
      module Actions

        # Return the settings for all indices, or a list of indices.
        #
        # @example Get settings for all indices
        #
        #     client.indices.get_settings
        #
        # @example Get settings for an index named _myindex_
        #
        #     client.indices.get_settings index: 'myindex'
        #
        # @option arguments [List] :index A comma-separated list of index names; use `_all` or empty string
        #                                 to perform the operation on all indices
        #
        # @see http://www.elasticsearch.org/guide/reference/api/admin-indices-get-settings/
        #
        def get_settings(arguments={})
          method = 'GET'
          path   = Utils.__pathify Utils.__listify(arguments[:index]), Utils.__listify(arguments[:type]), '_settings'
          params = {}
          body   = nil

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
elasticsearch-api-0.4.7 lib/elasticsearch/api/actions/indices/get_settings.rb
elasticsearch-api-0.4.6 lib/elasticsearch/api/actions/indices/get_settings.rb
elasticsearch-api-0.4.5 lib/elasticsearch/api/actions/indices/get_settings.rb
elasticsearch-api-0.4.4 lib/elasticsearch/api/actions/indices/get_settings.rb
elasticsearch-api-0.4.3 lib/elasticsearch/api/actions/indices/get_settings.rb
elasticsearch-api-0.4.2 lib/elasticsearch/api/actions/indices/get_settings.rb
elasticsearch-api-0.4.1 lib/elasticsearch/api/actions/indices/get_settings.rb