elasticsearch-api 6.8.3 → 7.0.0.pre
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
|
@@ -44,18 +57,16 @@ module Elasticsearch
|
|
|
44
57
|
# }
|
|
45
58
|
# },
|
|
46
59
|
# mappings: {
|
|
47
|
-
#
|
|
48
|
-
#
|
|
49
|
-
#
|
|
50
|
-
#
|
|
51
|
-
#
|
|
52
|
-
#
|
|
53
|
-
#
|
|
54
|
-
#
|
|
55
|
-
#
|
|
56
|
-
#
|
|
57
|
-
# }
|
|
58
|
-
# }
|
|
60
|
+
# properties: {
|
|
61
|
+
# title: {
|
|
62
|
+
# type: 'multi_field',
|
|
63
|
+
# fields: {
|
|
64
|
+
# title: { type: 'string', analyzer: 'snowball' },
|
|
65
|
+
# exact: { type: 'string', analyzer: 'keyword' },
|
|
66
|
+
# ngram: { type: 'string',
|
|
67
|
+
# index_analyzer: 'ngram',
|
|
68
|
+
# search_analyzer: 'ngram_search'
|
|
69
|
+
# }
|
|
59
70
|
# }
|
|
60
71
|
# }
|
|
61
72
|
# }
|
|
@@ -63,13 +74,15 @@ module Elasticsearch
|
|
|
63
74
|
# }
|
|
64
75
|
#
|
|
65
76
|
# @option arguments [String] :index The name of the index (*Required*)
|
|
66
|
-
# @option arguments [Hash] :body
|
|
67
|
-
# @option arguments [
|
|
77
|
+
# @option arguments [Hash] :body Optional configuration for the index (`settings` and `mappings`)
|
|
78
|
+
# @option arguments [Boolean] :include_type_name Whether a type should be expected in the body of the mappings.
|
|
79
|
+
# @option arguments [Boolean] :update_all_types Whether to update the mapping for all fields
|
|
80
|
+
# with the same name across all types
|
|
81
|
+
# @option arguments [Number] :wait_for_active_shards Wait until the specified number of shards is active
|
|
68
82
|
# @option arguments [Time] :timeout Explicit operation timeout
|
|
69
|
-
# @option arguments [
|
|
70
|
-
# @option arguments [Boolean] :update_all_types Whether to update the mapping for all fields with the same name across all types or not
|
|
83
|
+
# @option arguments [Boolean] :master_timeout Timeout for connection to master
|
|
71
84
|
#
|
|
72
|
-
# @see http://www.
|
|
85
|
+
# @see http://www.elasticsearch.org/guide/reference/api/admin-indices-create-index/
|
|
73
86
|
#
|
|
74
87
|
def create(arguments={})
|
|
75
88
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
|
@@ -84,13 +97,12 @@ module Elasticsearch
|
|
|
84
97
|
|
|
85
98
|
# Register this action with its valid params when the module is loaded.
|
|
86
99
|
#
|
|
87
|
-
# @since 6.
|
|
100
|
+
# @since 6.1.1
|
|
88
101
|
ParamsRegistry.register(:create, [
|
|
102
|
+
:include_type_name,
|
|
89
103
|
:wait_for_active_shards,
|
|
90
104
|
:timeout,
|
|
91
|
-
:master_timeout
|
|
92
|
-
:update_all_types,
|
|
93
|
-
:include_type_name ].freeze)
|
|
105
|
+
:master_timeout ].freeze)
|
|
94
106
|
end
|
|
95
107
|
end
|
|
96
108
|
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
|
|
@@ -27,14 +40,15 @@ module Elasticsearch
|
|
|
27
40
|
#
|
|
28
41
|
# client.indices.delete index: '_all'
|
|
29
42
|
#
|
|
30
|
-
# @option arguments [List] :index A comma-separated list of indices to delete;
|
|
43
|
+
# @option arguments [List] :index A comma-separated list of indices to delete;
|
|
44
|
+
# use `_all` to delete all indices
|
|
31
45
|
# @option arguments [Time] :timeout Explicit operation timeout
|
|
32
46
|
# @option arguments [Time] :master_timeout Specify timeout for connection to master
|
|
33
47
|
# @option arguments [Boolean] :ignore_unavailable Ignore unavailable indexes (default: false)
|
|
34
48
|
# @option arguments [Boolean] :allow_no_indices Ignore if a wildcard expression resolves to no concrete indices (default: false)
|
|
35
|
-
# @option arguments [
|
|
49
|
+
# @option arguments [List] :expand_wildcards Whether wildcard expressions should get expanded to open or closed indices (options: open, closed, none, all) (default: open)
|
|
36
50
|
#
|
|
37
|
-
# @see http://www.
|
|
51
|
+
# @see http://www.elasticsearch.org/guide/reference/api/admin-indices-delete-index/
|
|
38
52
|
#
|
|
39
53
|
def delete(arguments={})
|
|
40
54
|
method = HTTP_DELETE
|
|
@@ -52,7 +66,7 @@ module Elasticsearch
|
|
|
52
66
|
|
|
53
67
|
# Register this action with its valid params when the module is loaded.
|
|
54
68
|
#
|
|
55
|
-
# @since 6.
|
|
69
|
+
# @since 6.1.1
|
|
56
70
|
ParamsRegistry.register(:delete, [
|
|
57
71
|
:timeout,
|
|
58
72
|
: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
|
|
@@ -15,12 +28,11 @@ module Elasticsearch
|
|
|
15
28
|
#
|
|
16
29
|
# See the {Indices::Actions#update_aliases} for performing operations with index aliases in bulk.
|
|
17
30
|
#
|
|
18
|
-
# @option arguments [
|
|
19
|
-
# @option arguments [
|
|
31
|
+
# @option arguments [String] :index The name of the index with an alias (*Required*)
|
|
32
|
+
# @option arguments [String] :name The name of the alias to be deleted (*Required*)
|
|
20
33
|
# @option arguments [Time] :timeout Explicit timestamp for the document
|
|
21
|
-
# @option arguments [Time] :master_timeout Specify timeout for connection to master
|
|
22
34
|
#
|
|
23
|
-
# @see http://www.
|
|
35
|
+
# @see http://www.elasticsearch.org/guide/reference/api/admin-indices-aliases/
|
|
24
36
|
#
|
|
25
37
|
def delete_alias(arguments={})
|
|
26
38
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
|
@@ -36,7 +48,7 @@ module Elasticsearch
|
|
|
36
48
|
|
|
37
49
|
# Register this action with its valid params when the module is loaded.
|
|
38
50
|
#
|
|
39
|
-
# @since 6.
|
|
51
|
+
# @since 6.1.1
|
|
40
52
|
ParamsRegistry.register(:delete_alias, [
|
|
41
53
|
:timeout,
|
|
42
54
|
: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
|
|
@@ -19,9 +32,8 @@ module Elasticsearch
|
|
|
19
32
|
#
|
|
20
33
|
# @option arguments [String] :name The name of the template (*Required*)
|
|
21
34
|
# @option arguments [Time] :timeout Explicit operation timeout
|
|
22
|
-
# @option arguments [Time] :master_timeout Specify timeout for connection to master
|
|
23
35
|
#
|
|
24
|
-
# @see http://www.
|
|
36
|
+
# @see http://www.elasticsearch.org/guide/reference/api/admin-indices-templates/
|
|
25
37
|
#
|
|
26
38
|
def delete_template(arguments={})
|
|
27
39
|
raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
|
|
@@ -40,7 +52,7 @@ module Elasticsearch
|
|
|
40
52
|
|
|
41
53
|
# Register this action with its valid params when the module is loaded.
|
|
42
54
|
#
|
|
43
|
-
# @since 6.
|
|
55
|
+
# @since 6.1.1
|
|
44
56
|
ParamsRegistry.register(:delete_template, [
|
|
45
57
|
:timeout,
|
|
46
58
|
: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,15 +26,22 @@ module Elasticsearch
|
|
|
13
26
|
#
|
|
14
27
|
# client.indices.exists? index: 'myindex'
|
|
15
28
|
#
|
|
16
|
-
# @option arguments [List] :index A comma-separated list of
|
|
17
|
-
# @option arguments [Boolean] :
|
|
18
|
-
#
|
|
19
|
-
#
|
|
20
|
-
# @option arguments [String] :expand_wildcards Whether
|
|
21
|
-
#
|
|
22
|
-
# @option arguments [
|
|
29
|
+
# @option arguments [List] :index A comma-separated list of indices to check (*Required*)
|
|
30
|
+
# @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into
|
|
31
|
+
# no concrete indices. (This includes `_all` string or when no
|
|
32
|
+
# indices have been specified)
|
|
33
|
+
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that
|
|
34
|
+
# are open, closed or both. (options: open, closed)
|
|
35
|
+
# @option arguments [String] :ignore_indices When performed on multiple indices, allows to ignore
|
|
36
|
+
# `missing` ones (options: none, missing) @until 1.0
|
|
37
|
+
# @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when
|
|
38
|
+
# unavailable (missing, closed, etc)
|
|
39
|
+
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
|
|
40
|
+
# (default: false)
|
|
23
41
|
#
|
|
24
|
-
# @
|
|
42
|
+
# @return [true,false]
|
|
43
|
+
#
|
|
44
|
+
# @see http://www.elasticsearch.org/guide/reference/api/admin-indices-indices-exists/
|
|
25
45
|
#
|
|
26
46
|
def exists(arguments={})
|
|
27
47
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
|
@@ -38,7 +58,7 @@ module Elasticsearch
|
|
|
38
58
|
|
|
39
59
|
# Register this action with its valid params when the module is loaded.
|
|
40
60
|
#
|
|
41
|
-
# @since 6.
|
|
61
|
+
# @since 6.1.1
|
|
42
62
|
ParamsRegistry.register(:exists, [
|
|
43
63
|
:local,
|
|
44
64
|
:ignore_unavailable,
|
|
@@ -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,13 +27,20 @@ module Elasticsearch
|
|
|
14
27
|
# client.indices.exists_alias? name: 'myalias'
|
|
15
28
|
#
|
|
16
29
|
# @option arguments [List] :index A comma-separated list of index names to filter aliases
|
|
17
|
-
# @option arguments [List] :name A comma-separated list of alias names to return
|
|
18
|
-
# @option arguments [Boolean] :
|
|
19
|
-
#
|
|
20
|
-
#
|
|
21
|
-
# @option arguments [
|
|
30
|
+
# @option arguments [List] :name A comma-separated list of alias names to return
|
|
31
|
+
# @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into
|
|
32
|
+
# no concrete indices. (This includes `_all` string or when no
|
|
33
|
+
# indices have been specified)
|
|
34
|
+
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that
|
|
35
|
+
# are open, closed or both. (options: open, closed)
|
|
36
|
+
# @option arguments [String] :ignore_indices When performed on multiple indices, allows to ignore
|
|
37
|
+
# `missing` ones (options: none, missing) @until 1.0
|
|
38
|
+
# @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when
|
|
39
|
+
# unavailable (missing, closed, etc)
|
|
40
|
+
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
|
|
41
|
+
# (default: false)
|
|
22
42
|
#
|
|
23
|
-
# @see http://www.
|
|
43
|
+
# @see http://www.elasticsearch.org/guide/reference/api/admin-indices-aliases/
|
|
24
44
|
#
|
|
25
45
|
def exists_alias(arguments={})
|
|
26
46
|
method = HTTP_HEAD
|
|
@@ -37,7 +57,7 @@ module Elasticsearch
|
|
|
37
57
|
|
|
38
58
|
# Register this action with its valid params when the module is loaded.
|
|
39
59
|
#
|
|
40
|
-
# @since 6.
|
|
60
|
+
# @since 6.1.1
|
|
41
61
|
ParamsRegistry.register(:exists_alias, [
|
|
42
62
|
:ignore_unavailable,
|
|
43
63
|
:allow_no_indices,
|
|
@@ -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,12 +24,11 @@ module Elasticsearch
|
|
|
11
24
|
#
|
|
12
25
|
# client.indices.exists_template? name: 'mytemplate'
|
|
13
26
|
#
|
|
14
|
-
# @option arguments [
|
|
15
|
-
# @option arguments [Boolean] :flat_settings Return settings in flat format (default: false)
|
|
16
|
-
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
|
27
|
+
# @option arguments [String] :name The name of the template (*Required*)
|
|
17
28
|
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
|
|
29
|
+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
|
18
30
|
#
|
|
19
|
-
# @see http://www.
|
|
31
|
+
# @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/indices-templates.html
|
|
20
32
|
#
|
|
21
33
|
def exists_template(arguments={})
|
|
22
34
|
raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
|
|
@@ -34,7 +46,7 @@ module Elasticsearch
|
|
|
34
46
|
|
|
35
47
|
# Register this action with its valid params when the module is loaded.
|
|
36
48
|
#
|
|
37
|
-
# @since 6.
|
|
49
|
+
# @since 6.1.1
|
|
38
50
|
ParamsRegistry.register(:exists_template, [
|
|
39
51
|
:flat_settings,
|
|
40
52
|
: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
|
|
@@ -11,14 +24,22 @@ module Elasticsearch
|
|
|
11
24
|
#
|
|
12
25
|
# client.indices.exists_type? index: 'myindex', type: 'mytype'
|
|
13
26
|
#
|
|
14
|
-
# @option arguments [List] :index A comma-separated list of index names; use `_all`
|
|
27
|
+
# @option arguments [List] :index A comma-separated list of index names; use `_all`
|
|
28
|
+
# to check the types across all indices (*Required*)
|
|
15
29
|
# @option arguments [List] :type A comma-separated list of document types to check (*Required*)
|
|
16
|
-
# @option arguments [Boolean] :
|
|
17
|
-
#
|
|
18
|
-
#
|
|
19
|
-
# @option arguments [
|
|
30
|
+
# @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into
|
|
31
|
+
# no concrete indices. (This includes `_all` string or when no
|
|
32
|
+
# indices have been specified)
|
|
33
|
+
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that
|
|
34
|
+
# are open, closed or both. (options: open, closed)
|
|
35
|
+
# @option arguments [String] :ignore_indices When performed on multiple indices, allows to ignore
|
|
36
|
+
# `missing` ones (options: none, missing) @until 1.0
|
|
37
|
+
# @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when
|
|
38
|
+
# unavailable (missing, closed, etc)
|
|
39
|
+
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
|
|
40
|
+
# (default: false)
|
|
20
41
|
#
|
|
21
|
-
# @see
|
|
42
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-types-exists.html
|
|
22
43
|
#
|
|
23
44
|
def exists_type(arguments={})
|
|
24
45
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
|
@@ -37,7 +58,7 @@ module Elasticsearch
|
|
|
37
58
|
|
|
38
59
|
# Register this action with its valid params when the module is loaded.
|
|
39
60
|
#
|
|
40
|
-
# @since 6.
|
|
61
|
+
# @since 6.1.1
|
|
41
62
|
ParamsRegistry.register(:exists_type, [
|
|
42
63
|
:ignore_unavailable,
|
|
43
64
|
:allow_no_indices,
|