elasticsearch-api 6.8.3 → 7.0.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +17 -1
- data/LICENSE.txt +199 -10
- data/README.md +3 -3
- data/Rakefile +23 -6
- data/elasticsearch-api.gemspec +77 -43
- data/lib/elasticsearch-api.rb +16 -3
- data/lib/elasticsearch/api.rb +18 -5
- data/lib/elasticsearch/api/actions/abort_benchmark.rb +17 -4
- data/lib/elasticsearch/api/actions/benchmark.rb +18 -5
- data/lib/elasticsearch/api/actions/bulk.rb +18 -7
- data/lib/elasticsearch/api/actions/cat/aliases.rb +25 -11
- data/lib/elasticsearch/api/actions/cat/allocation.rb +26 -12
- data/lib/elasticsearch/api/actions/cat/count.rb +25 -11
- data/lib/elasticsearch/api/actions/cat/fielddata.rb +23 -11
- data/lib/elasticsearch/api/actions/cat/health.rb +26 -12
- data/lib/elasticsearch/api/actions/cat/help.rb +18 -6
- data/lib/elasticsearch/api/actions/cat/indices.rb +28 -13
- data/lib/elasticsearch/api/actions/cat/master.rb +25 -11
- data/lib/elasticsearch/api/actions/cat/nodeattrs.rb +19 -7
- data/lib/elasticsearch/api/actions/cat/nodes.rb +25 -11
- data/lib/elasticsearch/api/actions/cat/params_registry.rb +19 -6
- data/lib/elasticsearch/api/actions/cat/pending_tasks.rb +25 -11
- data/lib/elasticsearch/api/actions/cat/plugins.rb +21 -8
- data/lib/elasticsearch/api/actions/cat/recovery.rb +26 -11
- data/lib/elasticsearch/api/actions/cat/repositories.rb +18 -7
- data/lib/elasticsearch/api/actions/cat/segments.rb +22 -10
- data/lib/elasticsearch/api/actions/cat/shards.rb +26 -12
- data/lib/elasticsearch/api/actions/cat/snapshots.rb +19 -9
- data/lib/elasticsearch/api/actions/cat/tasks.rb +20 -6
- data/lib/elasticsearch/api/actions/cat/templates.rb +21 -8
- data/lib/elasticsearch/api/actions/cat/thread_pool.rb +33 -16
- data/lib/elasticsearch/api/actions/clear_scroll.rb +19 -15
- data/lib/elasticsearch/api/actions/cluster/allocation_explain.rb +20 -6
- data/lib/elasticsearch/api/actions/cluster/get_settings.rb +19 -7
- data/lib/elasticsearch/api/actions/cluster/health.rb +35 -13
- data/lib/elasticsearch/api/actions/cluster/params_registry.rb +19 -6
- data/lib/elasticsearch/api/actions/cluster/pending_tasks.rb +20 -6
- data/lib/elasticsearch/api/actions/cluster/put_settings.rb +19 -8
- data/lib/elasticsearch/api/actions/cluster/remote_info.rb +17 -10
- data/lib/elasticsearch/api/actions/cluster/reroute.rb +23 -10
- data/lib/elasticsearch/api/actions/cluster/state.rb +28 -18
- data/lib/elasticsearch/api/actions/cluster/stats.rb +21 -16
- data/lib/elasticsearch/api/actions/count.rb +18 -4
- data/lib/elasticsearch/api/actions/create.rb +16 -3
- data/lib/elasticsearch/api/actions/delete.rb +24 -19
- data/lib/elasticsearch/api/actions/delete_by_query.rb +18 -5
- data/lib/elasticsearch/api/actions/{delete_by_query_rethrottle.rb → delete_by_rethrottle.rb} +18 -5
- data/lib/elasticsearch/api/actions/delete_script.rb +18 -5
- data/lib/elasticsearch/api/actions/exists.rb +18 -6
- data/lib/elasticsearch/api/actions/exists_source.rb +16 -3
- data/lib/elasticsearch/api/actions/explain.rb +30 -10
- data/lib/elasticsearch/api/actions/field_caps.rb +18 -6
- data/lib/elasticsearch/api/actions/get.rb +20 -6
- data/lib/elasticsearch/api/actions/get_script.rb +22 -9
- data/lib/elasticsearch/api/actions/get_source.rb +32 -10
- data/lib/elasticsearch/api/actions/index.rb +37 -17
- data/lib/elasticsearch/api/actions/indices/analyze.rb +32 -6
- data/lib/elasticsearch/api/actions/indices/clear_cache.rb +20 -8
- data/lib/elasticsearch/api/actions/indices/close.rb +31 -11
- data/lib/elasticsearch/api/actions/indices/create.rb +36 -24
- data/lib/elasticsearch/api/actions/indices/delete.rb +21 -7
- data/lib/elasticsearch/api/actions/indices/delete_alias.rb +20 -8
- data/lib/elasticsearch/api/actions/indices/delete_template.rb +18 -6
- data/lib/elasticsearch/api/actions/indices/exists.rb +32 -12
- data/lib/elasticsearch/api/actions/indices/exists_alias.rb +30 -10
- data/lib/elasticsearch/api/actions/indices/exists_template.rb +20 -8
- data/lib/elasticsearch/api/actions/indices/exists_type.rb +31 -10
- data/lib/elasticsearch/api/actions/indices/flush.rb +26 -9
- data/lib/elasticsearch/api/actions/indices/flush_synced.rb +18 -5
- data/lib/elasticsearch/api/actions/indices/forcemerge.rb +18 -5
- data/lib/elasticsearch/api/actions/indices/freeze.rb +1 -4
- data/lib/elasticsearch/api/actions/indices/get.rb +21 -7
- data/lib/elasticsearch/api/actions/indices/get_alias.rb +18 -5
- data/lib/elasticsearch/api/actions/indices/get_field_mapping.rb +21 -7
- data/lib/elasticsearch/api/actions/indices/get_mapping.rb +21 -8
- data/lib/elasticsearch/api/actions/indices/get_settings.rb +18 -5
- data/lib/elasticsearch/api/actions/indices/get_template.rb +21 -7
- data/lib/elasticsearch/api/actions/indices/open.rb +18 -5
- data/lib/elasticsearch/api/actions/indices/params_registry.rb +19 -6
- data/lib/elasticsearch/api/actions/indices/put_alias.rb +18 -5
- data/lib/elasticsearch/api/actions/indices/put_mapping.rb +23 -11
- data/lib/elasticsearch/api/actions/indices/put_settings.rb +18 -5
- data/lib/elasticsearch/api/actions/indices/put_template.rb +21 -7
- data/lib/elasticsearch/api/actions/indices/recovery.rb +19 -6
- data/lib/elasticsearch/api/actions/indices/refresh.rb +18 -5
- data/lib/elasticsearch/api/actions/indices/rollover.rb +21 -7
- data/lib/elasticsearch/api/actions/indices/segments.rb +18 -5
- data/lib/elasticsearch/api/actions/indices/shard_stores.rb +18 -5
- data/lib/elasticsearch/api/actions/indices/shrink.rb +18 -7
- data/lib/elasticsearch/api/actions/indices/split.rb +19 -9
- data/lib/elasticsearch/api/actions/indices/stats.rb +18 -5
- data/lib/elasticsearch/api/actions/indices/unfreeze.rb +0 -4
- data/lib/elasticsearch/api/actions/indices/update_aliases.rb +18 -5
- data/lib/elasticsearch/api/actions/indices/upgrade.rb +18 -5
- data/lib/elasticsearch/api/actions/indices/validate_query.rb +18 -5
- data/lib/elasticsearch/api/actions/info.rb +16 -9
- data/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb +18 -5
- data/lib/elasticsearch/api/actions/ingest/get_pipeline.rb +20 -8
- data/lib/elasticsearch/api/actions/ingest/params_registry.rb +19 -6
- data/lib/elasticsearch/api/actions/ingest/processor_grok.rb +0 -4
- data/lib/elasticsearch/api/actions/ingest/put_pipeline.rb +18 -5
- data/lib/elasticsearch/api/actions/ingest/simulate.rb +22 -9
- data/lib/elasticsearch/api/actions/mget.rb +17 -4
- data/lib/elasticsearch/api/actions/msearch.rb +21 -7
- data/lib/elasticsearch/api/actions/msearch_template.rb +21 -6
- data/lib/elasticsearch/api/actions/mtermvectors.rb +18 -5
- data/lib/elasticsearch/api/actions/nodes/hot_threads.rb +20 -5
- data/lib/elasticsearch/api/actions/nodes/info.rb +44 -11
- data/lib/elasticsearch/api/actions/nodes/params_registry.rb +19 -6
- data/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb +19 -12
- data/lib/elasticsearch/api/actions/nodes/shutdown.rb +17 -4
- data/lib/elasticsearch/api/actions/nodes/stats.rb +18 -5
- data/lib/elasticsearch/api/actions/nodes/usage.rb +3 -7
- data/lib/elasticsearch/api/actions/params_registry.rb +19 -6
- data/lib/elasticsearch/api/actions/ping.rb +16 -9
- data/lib/elasticsearch/api/actions/put_script.rb +18 -6
- data/lib/elasticsearch/api/actions/rank_eval.rb +17 -4
- data/lib/elasticsearch/api/actions/reindex.rb +19 -5
- data/lib/elasticsearch/api/actions/reindex_rethrottle.rb +17 -4
- data/lib/elasticsearch/api/actions/remote/info.rb +16 -3
- data/lib/elasticsearch/api/actions/render_search_template.rb +18 -5
- data/lib/elasticsearch/api/actions/scripts_painless_execute.rb +16 -9
- data/lib/elasticsearch/api/actions/scroll.rb +19 -6
- data/lib/elasticsearch/api/actions/search.rb +72 -39
- data/lib/elasticsearch/api/actions/search_shards.rb +31 -11
- data/lib/elasticsearch/api/actions/search_template.rb +21 -6
- data/lib/elasticsearch/api/actions/snapshot/create.rb +20 -6
- data/lib/elasticsearch/api/actions/snapshot/create_repository.rb +18 -5
- data/lib/elasticsearch/api/actions/snapshot/delete.rb +20 -7
- data/lib/elasticsearch/api/actions/snapshot/delete_repository.rb +19 -5
- data/lib/elasticsearch/api/actions/snapshot/get.rb +21 -7
- data/lib/elasticsearch/api/actions/snapshot/get_repository.rb +23 -7
- data/lib/elasticsearch/api/actions/snapshot/params_registry.rb +19 -6
- data/lib/elasticsearch/api/actions/snapshot/restore.rb +18 -5
- data/lib/elasticsearch/api/actions/snapshot/status.rb +23 -8
- data/lib/elasticsearch/api/actions/snapshot/verify_repository.rb +18 -5
- data/lib/elasticsearch/api/actions/tasks/cancel.rb +18 -5
- data/lib/elasticsearch/api/actions/tasks/get.rb +18 -5
- data/lib/elasticsearch/api/actions/tasks/list.rb +18 -5
- data/lib/elasticsearch/api/actions/tasks/params_registry.rb +19 -6
- data/lib/elasticsearch/api/actions/termvectors.rb +33 -18
- data/lib/elasticsearch/api/actions/update.rb +61 -26
- data/lib/elasticsearch/api/actions/update_by_query.rb +18 -5
- data/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb +16 -3
- data/lib/elasticsearch/api/namespace/cat.rb +16 -3
- data/lib/elasticsearch/api/namespace/cluster.rb +16 -3
- data/lib/elasticsearch/api/namespace/common.rb +16 -3
- data/lib/elasticsearch/api/namespace/indices.rb +16 -3
- data/lib/elasticsearch/api/namespace/ingest.rb +16 -3
- data/lib/elasticsearch/api/namespace/nodes.rb +16 -3
- data/lib/elasticsearch/api/namespace/remote.rb +16 -3
- data/lib/elasticsearch/api/namespace/snapshot.rb +16 -3
- data/lib/elasticsearch/api/namespace/tasks.rb +16 -3
- data/lib/elasticsearch/api/utils.rb +16 -3
- data/lib/elasticsearch/api/version.rb +17 -4
- data/spec/elasticsearch/api/actions/abort_benchmark_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/benchmark_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/bulk_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/cat/aliases_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/cat/allocation_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/cat/count_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/cat/fielddata_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/cat/health_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/cat/help_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/cat/indices_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/cat/master_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/cat/nodeattrs_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/cat/nodes_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/cat/pending_tasks_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/cat/plugins_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/cat/recovery_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/cat/repositories_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/cat/segments_spec.rb +33 -4
- data/spec/elasticsearch/api/actions/cat/shards_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/cat/snapshot_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/cat/tasks_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/cat/templates_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/cat/thread_pool_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/clear_scroll_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/cluster/allocation_explain_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/cluster/get_settings_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/cluster/health_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/cluster/pending_tasks_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/cluster/put_settings_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/cluster/remote_info_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/cluster/reroute_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/cluster/state_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/cluster/stats_spec.rb +16 -20
- data/spec/elasticsearch/api/actions/count_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/create_document_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/delete_by_query_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/delete_document_spec.rb +16 -9
- data/spec/elasticsearch/api/actions/delete_script_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/exists_document_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/explain_document_spec.rb +17 -10
- data/spec/elasticsearch/api/actions/field_caps_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/get_document_source_spec.rb +17 -4
- data/spec/elasticsearch/api/actions/get_document_spec.rb +17 -4
- data/spec/elasticsearch/api/actions/get_script_spec.rb +22 -16
- data/spec/elasticsearch/api/actions/hashie_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/index_document_spec.rb +16 -9
- data/spec/elasticsearch/api/actions/indices/analyze_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/indices/clear_cache_spec.rb +19 -6
- data/spec/elasticsearch/api/actions/indices/close_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/indices/create_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/indices/delete_alias_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/indices/delete_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/indices/delete_template_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/indices/exists_alias_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/indices/exists_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/indices/exists_template_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/indices/exists_type_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/indices/flush_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/indices/flush_synced_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/indices/forcemerge_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/indices/freeze_spec.rb +68 -0
- data/spec/elasticsearch/api/actions/indices/get_alias_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/indices/get_field_mapping_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/indices/get_mapping_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/indices/get_settings_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/indices/get_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/indices/open_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/indices/put_alias_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/indices/put_mapping_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/indices/put_settings_spec.rb +31 -3
- data/spec/elasticsearch/api/actions/indices/put_template_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/indices/recovery_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/indices/refresh_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/indices/rollover_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/indices/segments_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/indices/shard_stores_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/indices/shrink_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/indices/split_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/indices/stats_spec.rb +125 -0
- data/spec/elasticsearch/api/actions/indices/unfreeze_spec.rb +68 -0
- data/spec/elasticsearch/api/actions/indices/update_aliases_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/indices/upgrade_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/indices/validate_query_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/info_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/ingest/delete_pipeline_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/ingest/get_pipeline_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/ingest/put_pipeline_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/ingest/simulate_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/json_builders_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/mget_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/msearch_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/msearch_template_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/mtermvectors_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/nodes/hot_threads_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/nodes/info_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/nodes/reload_secure_settings_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/nodes/shutdown_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/nodes/stats_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/ping_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/put_script_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/reindex_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/remote/info_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/render_search_template_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/scoll_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/search_shards_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/search_spec.rb +31 -3
- data/spec/elasticsearch/api/actions/search_template_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/snapshot/create_repository_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/snapshot/create_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/snapshot/delete_repository_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/snapshot/delete_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/snapshot/get_repository_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/snapshot/get_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/snapshot/restore_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/snapshot/status_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/snapshot/verify_repository_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/tasks/cancel_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/tasks/get_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/tasks/list_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/termvectors_spec.rb +16 -9
- data/spec/elasticsearch/api/actions/update_by_query_spec.rb +16 -3
- data/spec/elasticsearch/api/actions/update_document_spec.rb +16 -9
- data/spec/elasticsearch/api/api_spec.rb +16 -3
- data/spec/elasticsearch/api/client_spec.rb +16 -3
- data/spec/elasticsearch/api/utils_spec.rb +16 -3
- data/spec/spec_helper.rb +16 -14
- data/test/integration/yaml_test_runner.rb +84 -42
- data/test/test_helper.rb +86 -14
- data/utils/Gemfile +17 -0
- data/utils/Thorfile +17 -0
- data/utils/thor/generate_api.rb +16 -3
- data/utils/thor/generate_source.rb +22 -6
- data/utils/thor/lister.rb +16 -3
- data/utils/thor/templates/ruby/method.erb +22 -7
- data/utils/thor/templates/ruby/test.erb +17 -0
- data/utils/thor/templates/ruby/test_helper.rb +16 -4
- metadata +56 -122
- data/lib/elasticsearch/api/actions/count_percolate.rb +0 -86
- data/lib/elasticsearch/api/actions/delete_template.rb +0 -25
- data/lib/elasticsearch/api/actions/field_stats.rb +0 -40
- data/lib/elasticsearch/api/actions/get_template.rb +0 -31
- data/lib/elasticsearch/api/actions/indices/delete_mapping.rb +0 -30
- data/lib/elasticsearch/api/actions/indices/delete_warmer.rb +0 -36
- data/lib/elasticsearch/api/actions/indices/get_aliases.rb +0 -41
- data/lib/elasticsearch/api/actions/indices/get_warmer.rb +0 -66
- data/lib/elasticsearch/api/actions/indices/optimize.rb +0 -81
- data/lib/elasticsearch/api/actions/indices/put_warmer.rb +0 -69
- data/lib/elasticsearch/api/actions/indices/seal.rb +0 -28
- data/lib/elasticsearch/api/actions/indices/snapshot_index.rb +0 -48
- data/lib/elasticsearch/api/actions/indices/status.rb +0 -67
- data/lib/elasticsearch/api/actions/list_benchmarks.rb +0 -31
- data/lib/elasticsearch/api/actions/mlt.rb +0 -134
- data/lib/elasticsearch/api/actions/mpercolate.rb +0 -66
- data/lib/elasticsearch/api/actions/percolate.rb +0 -77
- data/lib/elasticsearch/api/actions/put_template.rb +0 -29
- data/lib/elasticsearch/api/actions/search_exists.rb +0 -67
- data/lib/elasticsearch/api/actions/suggest.rb +0 -53
- data/spec/elasticsearch/api/actions/count_percolate_spec.rb +0 -21
- data/spec/elasticsearch/api/actions/delete_template_spec.rb +0 -21
- data/spec/elasticsearch/api/actions/field_stats_spec.rb +0 -21
- data/spec/elasticsearch/api/actions/get_template_spec.rb +0 -56
- data/spec/elasticsearch/api/actions/indices/delete_mapping_spec.rb +0 -81
- data/spec/elasticsearch/api/actions/indices/delete_warmer_spec.rb +0 -90
- data/spec/elasticsearch/api/actions/indices/get_aliases_spec.rb +0 -59
- data/spec/elasticsearch/api/actions/indices/get_template_spec.rb +0 -63
- data/spec/elasticsearch/api/actions/indices/get_warmer_spec.rb +0 -52
- data/spec/elasticsearch/api/actions/indices/optimize_spec.rb +0 -67
- data/spec/elasticsearch/api/actions/indices/put_warmer_spec.rb +0 -105
- data/spec/elasticsearch/api/actions/indices/seal_spec.rb +0 -22
- data/spec/elasticsearch/api/actions/indices/snapshot_index_spec.rb +0 -93
- data/spec/elasticsearch/api/actions/indices/status_spec.rb +0 -96
- data/spec/elasticsearch/api/actions/list_benchmarks_spec.rb +0 -21
- data/spec/elasticsearch/api/actions/mlt_spec.rb +0 -134
- data/spec/elasticsearch/api/actions/mpercolate_spec.rb +0 -53
- data/spec/elasticsearch/api/actions/put_template_spec.rb +0 -21
- data/spec/elasticsearch/api/actions/rank_eval_spec.rb +0 -113
- data/spec/elasticsearch/api/actions/search_exists_spec.rb +0 -67
- data/spec/elasticsearch/api/actions/suggest_spec.rb +0 -81
@@ -1,6 +1,19 @@
|
|
1
|
-
# Licensed to Elasticsearch B.V under one or more
|
2
|
-
#
|
3
|
-
#
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
4
17
|
|
5
18
|
module Elasticsearch
|
6
19
|
module API
|
@@ -11,9 +24,10 @@ module Elasticsearch
|
|
11
24
|
#
|
12
25
|
# @option arguments [Hash] :body The index, shard, and primary flag to explain. Empty means 'explain the first unassigned shard'
|
13
26
|
# @option arguments [Boolean] :include_yes_decisions Return 'YES' decisions in explanation (default: false)
|
14
|
-
# @option arguments [Boolean] :include_disk_info Return information about disk usage and shard sizes
|
27
|
+
# @option arguments [Boolean] :include_disk_info Return information about disk usage and shard sizes
|
28
|
+
# (default: false)
|
15
29
|
#
|
16
|
-
# @see http://www.elastic.co/guide/en/elasticsearch/reference/
|
30
|
+
# @see http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html
|
17
31
|
#
|
18
32
|
def allocation_explain(arguments={})
|
19
33
|
method = 'GET'
|
@@ -26,7 +40,7 @@ module Elasticsearch
|
|
26
40
|
|
27
41
|
# Register this action with its valid params when the module is loaded.
|
28
42
|
#
|
29
|
-
# @since 6.
|
43
|
+
# @since 6.1.1
|
30
44
|
ParamsRegistry.register(:allocation_explain, [
|
31
45
|
:include_yes_decisions,
|
32
46
|
:include_disk_info ].freeze)
|
@@ -1,6 +1,19 @@
|
|
1
|
-
# Licensed to Elasticsearch B.V under one or more
|
2
|
-
#
|
3
|
-
#
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
4
17
|
|
5
18
|
module Elasticsearch
|
6
19
|
module API
|
@@ -14,9 +27,8 @@ module Elasticsearch
|
|
14
27
|
# client.cluster.get_settings
|
15
28
|
#
|
16
29
|
# @option arguments [Boolean] :flat_settings Return settings in flat format (default: false)
|
17
|
-
# @option arguments [
|
18
|
-
#
|
19
|
-
# @option arguments [Boolean] :include_defaults Whether to return all default clusters setting.
|
30
|
+
# @option arguments [Boolean] :include_defaults Whether to return all default clusters setting
|
31
|
+
# (default: false)
|
20
32
|
#
|
21
33
|
# @see http://elasticsearch.org/guide/reference/api/admin-cluster-update-settings/
|
22
34
|
#
|
@@ -31,7 +43,7 @@ module Elasticsearch
|
|
31
43
|
|
32
44
|
# Register this action with its valid params when the module is loaded.
|
33
45
|
#
|
34
|
-
# @since 6.
|
46
|
+
# @since 6.1.1
|
35
47
|
ParamsRegistry.register(:get_settings, [
|
36
48
|
:flat_settings,
|
37
49
|
:master_timeout,
|
@@ -1,6 +1,19 @@
|
|
1
|
-
# Licensed to Elasticsearch B.V under one or more
|
2
|
-
#
|
3
|
-
#
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
4
17
|
|
5
18
|
module Elasticsearch
|
6
19
|
module API
|
@@ -17,17 +30,25 @@ module Elasticsearch
|
|
17
30
|
#
|
18
31
|
# client.cluster.health wait_for_status: 'yellow'
|
19
32
|
#
|
20
|
-
# @option arguments [
|
21
|
-
# @option arguments [String] :level Specify the level of detail for returned information
|
22
|
-
#
|
33
|
+
# @option arguments [String] :index Limit the information returned to a specific index
|
34
|
+
# @option arguments [String] :level Specify the level of detail for returned information
|
35
|
+
# (options: cluster, indices, shards)
|
36
|
+
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
|
37
|
+
# (default: false)
|
23
38
|
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
24
39
|
# @option arguments [Time] :timeout Explicit operation timeout
|
25
|
-
# @option arguments [
|
26
|
-
# @option arguments [
|
27
|
-
# @option arguments [
|
28
|
-
#
|
29
|
-
# @option arguments [Boolean] :
|
30
|
-
#
|
40
|
+
# @option arguments [Number] :wait_for_active_shards Wait until the specified number of shards is active
|
41
|
+
# @option arguments [Number] :wait_for_nodes Wait until the specified number of nodes is available
|
42
|
+
# @option arguments [Number] :wait_for_relocating_shards Wait until the specified number of relocating
|
43
|
+
# shards is finished
|
44
|
+
# @option arguments [Boolean] :wait_for_no_relocating_shards Whether to wait until there are no relocating
|
45
|
+
# shards in the cluster
|
46
|
+
# @option arguments [Boolean] :wait_for_no_initializing_shards Whether to wait until there are no
|
47
|
+
# initializing shards in the cluster
|
48
|
+
# @option arguments [String] :wait_for_status Wait until cluster is in a specific state
|
49
|
+
# (options: green, yellow, red)
|
50
|
+
# @option arguments [List] :wait_for_events Wait until all currently queued events with the given priorty
|
51
|
+
# are processed (immediate, urgent, high, normal, low, languid)
|
31
52
|
#
|
32
53
|
# @see http://elasticsearch.org/guide/reference/api/admin-cluster-health/
|
33
54
|
#
|
@@ -45,8 +66,9 @@ module Elasticsearch
|
|
45
66
|
|
46
67
|
# Register this action with its valid params when the module is loaded.
|
47
68
|
#
|
48
|
-
# @since 6.
|
69
|
+
# @since 6.1.1
|
49
70
|
ParamsRegistry.register(:health, [
|
71
|
+
:expand_wildcards,
|
50
72
|
:level,
|
51
73
|
:local,
|
52
74
|
:master_timeout,
|
@@ -1,6 +1,19 @@
|
|
1
|
-
# Licensed to Elasticsearch B.V under one or more
|
2
|
-
#
|
3
|
-
#
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
4
17
|
|
5
18
|
module Elasticsearch
|
6
19
|
module API
|
@@ -12,7 +25,7 @@ module Elasticsearch
|
|
12
25
|
|
13
26
|
# A Mapping of all the actions to their list of valid params.
|
14
27
|
#
|
15
|
-
# @since 6.
|
28
|
+
# @since 6.1.1
|
16
29
|
PARAMS = {}
|
17
30
|
|
18
31
|
# Register an action with its list of valid params.
|
@@ -23,7 +36,7 @@ module Elasticsearch
|
|
23
36
|
# @param [ Symbol ] action The action to register.
|
24
37
|
# @param [ Array[Symbol] ] valid_params The list of valid params.
|
25
38
|
#
|
26
|
-
# @since 6.
|
39
|
+
# @since 6.1.1
|
27
40
|
def register(action, valid_params)
|
28
41
|
PARAMS[action.to_sym] = valid_params
|
29
42
|
end
|
@@ -37,7 +50,7 @@ module Elasticsearch
|
|
37
50
|
#
|
38
51
|
# @return [ Array<Symbol> ] The list of valid params for the action.
|
39
52
|
#
|
40
|
-
# @since 6.
|
53
|
+
# @since 6.1.1
|
41
54
|
def get(action)
|
42
55
|
PARAMS.fetch(action, [])
|
43
56
|
end
|
@@ -1,6 +1,19 @@
|
|
1
|
-
# Licensed to Elasticsearch B.V under one or more
|
2
|
-
#
|
3
|
-
#
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
4
17
|
|
5
18
|
module Elasticsearch
|
6
19
|
module API
|
@@ -14,10 +27,11 @@ module Elasticsearch
|
|
14
27
|
#
|
15
28
|
# client.cluster.pending_tasks
|
16
29
|
#
|
17
|
-
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
|
30
|
+
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
|
31
|
+
# (default: false)
|
18
32
|
# @option arguments [Time] :master_timeout Specify timeout for connection to master
|
19
33
|
#
|
20
|
-
# @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/
|
34
|
+
# @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cluster-pending.html
|
21
35
|
#
|
22
36
|
def pending_tasks(arguments={})
|
23
37
|
method = HTTP_GET
|
@@ -30,7 +44,7 @@ module Elasticsearch
|
|
30
44
|
|
31
45
|
# Register this action with its valid params when the module is loaded.
|
32
46
|
#
|
33
|
-
# @since 6.
|
47
|
+
# @since 6.1.1
|
34
48
|
ParamsRegistry.register(:pending_tasks, [
|
35
49
|
:local,
|
36
50
|
:master_timeout ].freeze)
|
@@ -1,6 +1,19 @@
|
|
1
|
-
# Licensed to Elasticsearch B.V under one or more
|
2
|
-
#
|
3
|
-
#
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
4
17
|
|
5
18
|
module Elasticsearch
|
6
19
|
module API
|
@@ -13,10 +26,8 @@ module Elasticsearch
|
|
13
26
|
#
|
14
27
|
# client.cluster.put_settings body: { transient: { 'cluster.routing.allocation.disable_allocation' => true } }
|
15
28
|
#
|
16
|
-
# @option arguments [Hash] :body The settings to be updated. Can be either `transient` or `persistent`
|
17
|
-
#
|
18
|
-
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
19
|
-
# @option arguments [Time] :timeout Explicit operation timeout
|
29
|
+
# @option arguments [Hash] :body The settings to be updated. Can be either `transient` or `persistent`
|
30
|
+
# (survives cluster restart).
|
20
31
|
#
|
21
32
|
# @see http://elasticsearch.org/guide/reference/api/admin-cluster-update-settings/
|
22
33
|
#
|
@@ -31,7 +42,7 @@ module Elasticsearch
|
|
31
42
|
|
32
43
|
# Register this action with its valid params when the module is loaded.
|
33
44
|
#
|
34
|
-
# @since 6.
|
45
|
+
# @since 6.1.1
|
35
46
|
ParamsRegistry.register(:put_settings, [
|
36
47
|
:flat_settings,
|
37
48
|
:master_timeout,
|
@@ -1,6 +1,19 @@
|
|
1
|
-
# Licensed to Elasticsearch B.V under one or more
|
2
|
-
#
|
3
|
-
#
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
4
17
|
|
5
18
|
module Elasticsearch
|
6
19
|
module API
|
@@ -10,7 +23,7 @@ module Elasticsearch
|
|
10
23
|
# Returns the configured remote cluster information
|
11
24
|
#
|
12
25
|
#
|
13
|
-
# @see http://www.elastic.co/guide/en/elasticsearch/reference/
|
26
|
+
# @see http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-remote-info.html
|
14
27
|
#
|
15
28
|
def remote_info(arguments={})
|
16
29
|
method = Elasticsearch::API::HTTP_GET
|
@@ -20,12 +33,6 @@ module Elasticsearch
|
|
20
33
|
|
21
34
|
perform_request(method, path, params, body).body
|
22
35
|
end
|
23
|
-
|
24
|
-
# Register this action with its valid params when the module is loaded.
|
25
|
-
#
|
26
|
-
# @since 6.2.0
|
27
|
-
ParamsRegistry.register(:remote_info, [
|
28
|
-
].freeze)
|
29
36
|
end
|
30
37
|
end
|
31
38
|
end
|
@@ -1,6 +1,19 @@
|
|
1
|
-
# Licensed to Elasticsearch B.V under one or more
|
2
|
-
#
|
3
|
-
#
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
4
17
|
|
5
18
|
module Elasticsearch
|
6
19
|
module API
|
@@ -25,13 +38,13 @@ module Elasticsearch
|
|
25
38
|
#
|
26
39
|
# @option arguments [Hash] :body The definition of `commands` to perform (`move`, `cancel`, `allocate`)
|
27
40
|
# @option arguments [Boolean] :dry_run Simulate the operation only and return the resulting state
|
28
|
-
# @option arguments [Boolean] :explain Return an explanation
|
41
|
+
# @option arguments [Boolean] :explain Return an explanation for why the commands can or cannot be executed
|
42
|
+
# @option arguments [Boolean] :metric Limit the information returned to the specified metrics.
|
43
|
+
# Defaults to all but metadata. (Options: _all, blocks, metadata,
|
44
|
+
# nodes, routing_table, master_node, version)
|
45
|
+
# @option arguments [Time] :master_timeout Specify timeout for connection to master
|
29
46
|
# @option arguments [Boolean] :retry_failed Retries allocation of shards that are blocked due to too many
|
30
|
-
#
|
31
|
-
# @option arguments [List] :metric Limit the information returned to the specified metrics. Defaults to all
|
32
|
-
# but metadata (options: _all, blocks, metadata, nodes, routing_table, master_node, version)
|
33
|
-
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
34
|
-
# @option arguments [Time] :timeout Explicit operation timeout
|
47
|
+
# subsequent allocation failures
|
35
48
|
#
|
36
49
|
# @see http://elasticsearch.org/guide/reference/api/admin-cluster-reroute/
|
37
50
|
#
|
@@ -47,7 +60,7 @@ module Elasticsearch
|
|
47
60
|
|
48
61
|
# Register this action with its valid params when the module is loaded.
|
49
62
|
#
|
50
|
-
# @since 6.
|
63
|
+
# @since 6.1.1
|
51
64
|
ParamsRegistry.register(:reroute, [
|
52
65
|
:dry_run,
|
53
66
|
:explain,
|
@@ -1,6 +1,19 @@
|
|
1
|
-
# Licensed to Elasticsearch B.V under one or more
|
2
|
-
#
|
3
|
-
#
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
4
17
|
|
5
18
|
module Elasticsearch
|
6
19
|
module API
|
@@ -13,24 +26,21 @@ module Elasticsearch
|
|
13
26
|
#
|
14
27
|
# client.cluster.state
|
15
28
|
#
|
16
|
-
# @option arguments [List] :index A comma-separated list of index names; use `_all` or
|
17
|
-
#
|
29
|
+
# @option arguments [List] :index A comma-separated list of index names; use `_all` or omit to
|
30
|
+
# perform the operation on all indices
|
18
31
|
# @option arguments [List] :metric Limit the information returned to the specified metrics
|
19
|
-
#
|
32
|
+
# (options: _all, blocks, index_templates, metadata, nodes, routing_table,
|
33
|
+
# master_node, version)
|
34
|
+
# @option arguments [List] :index_templates A comma separated list to return specific index templates when
|
35
|
+
# returning metadata
|
20
36
|
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
|
21
|
-
#
|
37
|
+
# (default: false)
|
22
38
|
# @option arguments [Time] :master_timeout Specify timeout for connection to master
|
23
|
-
# @option arguments [
|
24
|
-
#
|
25
|
-
#
|
26
|
-
# @option arguments [Time] :wait_for_timeout The maximum time to wait for wait_for_metadata_version before
|
27
|
-
# timing out
|
39
|
+
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression for inidices
|
40
|
+
# (options: open, closed)
|
41
|
+
# @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)
|
28
42
|
# @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when
|
29
|
-
#
|
30
|
-
# @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves
|
31
|
-
# into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
32
|
-
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that
|
33
|
-
# are open, closed or both. (options: open, closed, none, all)
|
43
|
+
# unavailable (missing, closed, etc)
|
34
44
|
#
|
35
45
|
# @see http://elasticsearch.org/guide/reference/api/admin-cluster-state/
|
36
46
|
#
|
@@ -56,7 +66,7 @@ module Elasticsearch
|
|
56
66
|
|
57
67
|
# Register this action with its valid params when the module is loaded.
|
58
68
|
#
|
59
|
-
# @since 6.
|
69
|
+
# @since 6.1.1
|
60
70
|
ParamsRegistry.register(:state, [
|
61
71
|
:local,
|
62
72
|
:master_timeout,
|