Skip to content

Commit 725563c

Browse files
committed
[API] Removed the unsupported parameters from the "Indices Flush" API
Related: #430
1 parent 4a98038 commit 725563c

File tree

1 file changed

+3
-10
lines changed
  • elasticsearch-api/lib/elasticsearch/api/actions/indices

1 file changed

+3
-10
lines changed

elasticsearch-api/lib/elasticsearch/api/actions/indices/flush.rb

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,24 @@ module Actions
1212
#
1313
# @option arguments [List] :index A comma-separated list of index names; use `_all` or empty string for all indices
1414
# @option arguments [Boolean] :force Whether a flush should be forced even if it is not necessarily needed ie.
15-
# if no changes will be committed to the index. (Internal)
16-
# @option arguments [Boolean] :full If set to true a new index writer is created and settings that have been
17-
# changed related to the index writer will be refreshed. (Internal)
1815
# @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into
1916
# no concrete indices. (This includes `_all` string or when no
2017
# indices have been specified)
2118
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that
2219
# are open, closed or both. (options: open, closed)
23-
# @option arguments [String] :ignore_indices When performed on multiple indices, allows to ignore
24-
# `missing` ones (options: none, missing) @until 1.0
2520
# @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when
2621
# unavailable (missing, closed, etc)
27-
# @option arguments [Boolean] :refresh Refresh the index after performing the operation
22+
# @option arguments [Boolean] :wait_if_ongoing If set to true the flush operation will block until the flush can be executed if another flush operation is already executing. If set to false the flush will be skipped if another flush operation is already running. (Default: true)
2823
#
2924
# @see http://www.elasticsearch.org/guide/reference/api/admin-indices-flush/
3025
#
3126
def flush(arguments={})
3227
valid_params = [
3328
:force,
34-
:full,
35-
:ignore_indices,
29+
:wait_if_ongoing,
3630
:ignore_unavailable,
3731
:allow_no_indices,
38-
:expand_wildcards,
39-
:refresh ]
32+
:expand_wildcards ]
4033

4134
method = HTTP_POST
4235
path = Utils.__pathify Utils.__listify(arguments[:index]), '_flush'

0 commit comments

Comments
 (0)