lib/elasticsearch/api/actions/indices/optimize.rb in elasticsearch-api-0.4.3 vs lib/elasticsearch/api/actions/indices/optimize.rb in elasticsearch-api-0.4.4
- old
+ new
@@ -16,16 +16,24 @@
# The operation is expensive in terms of resources (I/O, CPU, memory) and can take a long time to
# finish, potentially reducing operability of your cluster; schedule the manual optimization accordingly.
#
# @option arguments [List] :index A comma-separated list of index names; use `_all`
# or empty string to perform the operation on all indices
+ # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into
+ # no concrete indices. (This includes `_all` string or when no
+ # indices have been specified)
+ # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that
+ # are open, closed or both. (options: open, closed)
# @option arguments [Boolean] :flush Specify whether the index should be flushed after performing the operation
# (default: true)
- # @option arguments [String] :ignore_indices When performed on multiple indices, allows to ignore `missing` ones
- # (options: none, missing)
+ # @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 [Number] :max_num_segments The number of segments the index should be merged into
# (default: dynamic)
+ # @option arguments [Time] :master_timeout Specify timeout for connection to master
# @option arguments [Boolean] :only_expunge_deletes Specify whether the operation should only expunge
# deleted documents
# @option arguments [Boolean] :refresh Specify whether the index should be refreshed after performing the operation
# (default: true)
# @option arguments [Boolean] :wait_for_merge Specify whether the request should block until the merge process
@@ -33,11 +41,15 @@
#
# @see http://www.elasticsearch.org/guide/reference/api/admin-indices-optimize/
#
def optimize(arguments={})
valid_params = [
- :flush,
:ignore_indices,
+ :ignore_unavailable,
+ :allow_no_indices,
+ :expand_wildcards,
+ :flush,
+ :master_timeout,
:max_num_segments,
:only_expunge_deletes,
:operation_threading,
:refresh,
:wait_for_merge ]