lib/elasticsearch/api/actions/indices/put_settings.rb in elasticsearch-api-0.4.7 vs lib/elasticsearch/api/actions/indices/put_settings.rb in elasticsearch-api-0.4.8

- old
+ new

@@ -35,10 +35,11 @@ # @option arguments [String] :ignore_indices When performed on multiple indices, allows to ignore # `missing` ones (options: none, missing) @until 1.0 # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when # unavailable (missing, closed, etc) # @option arguments [Time] :master_timeout Specify timeout for connection to master + # @option arguments [Boolean] :flat_settings Return settings in flat format (default: false) # # @see http://www.elasticsearch.org/guide/reference/api/admin-indices-update-settings/ # def put_settings(arguments={}) raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] @@ -46,10 +47,11 @@ valid_params = [ :ignore_indices, :ignore_unavailable, :allow_no_indices, :expand_wildcards, - :master_timeout + :master_timeout, + :flat_settings ] method = 'PUT' path = Utils.__pathify Utils.__listify(arguments[:index]), '_settings' params = Utils.__validate_and_extract_params arguments, valid_params