elasticsearch-api 6.3.0 → 6.8.3
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 +1 -0
- data/Rakefile +1 -1
- data/elasticsearch-api.gemspec +43 -60
- data/lib/elasticsearch-api.rb +4 -0
- data/lib/elasticsearch/api.rb +6 -1
- data/lib/elasticsearch/api/actions/abort_benchmark.rb +4 -0
- data/lib/elasticsearch/api/actions/benchmark.rb +4 -0
- data/lib/elasticsearch/api/actions/bulk.rb +4 -0
- data/lib/elasticsearch/api/actions/cat/aliases.rb +4 -0
- data/lib/elasticsearch/api/actions/cat/allocation.rb +4 -0
- data/lib/elasticsearch/api/actions/cat/count.rb +4 -0
- data/lib/elasticsearch/api/actions/cat/fielddata.rb +4 -0
- data/lib/elasticsearch/api/actions/cat/health.rb +4 -0
- data/lib/elasticsearch/api/actions/cat/help.rb +4 -0
- data/lib/elasticsearch/api/actions/cat/indices.rb +4 -0
- data/lib/elasticsearch/api/actions/cat/master.rb +4 -0
- data/lib/elasticsearch/api/actions/cat/nodeattrs.rb +4 -0
- data/lib/elasticsearch/api/actions/cat/nodes.rb +4 -0
- data/lib/elasticsearch/api/actions/cat/params_registry.rb +4 -0
- data/lib/elasticsearch/api/actions/cat/pending_tasks.rb +4 -0
- data/lib/elasticsearch/api/actions/cat/plugins.rb +4 -0
- data/lib/elasticsearch/api/actions/cat/recovery.rb +4 -0
- data/lib/elasticsearch/api/actions/cat/repositories.rb +4 -0
- data/lib/elasticsearch/api/actions/cat/segments.rb +4 -0
- data/lib/elasticsearch/api/actions/cat/shards.rb +4 -0
- data/lib/elasticsearch/api/actions/cat/snapshots.rb +4 -0
- data/lib/elasticsearch/api/actions/cat/tasks.rb +4 -0
- data/lib/elasticsearch/api/actions/cat/templates.rb +4 -0
- data/lib/elasticsearch/api/actions/cat/thread_pool.rb +4 -0
- data/lib/elasticsearch/api/actions/clear_scroll.rb +4 -0
- data/lib/elasticsearch/api/actions/cluster/allocation_explain.rb +4 -0
- data/lib/elasticsearch/api/actions/cluster/get_settings.rb +4 -0
- data/lib/elasticsearch/api/actions/cluster/health.rb +4 -0
- data/lib/elasticsearch/api/actions/cluster/params_registry.rb +4 -0
- data/lib/elasticsearch/api/actions/cluster/pending_tasks.rb +4 -0
- data/lib/elasticsearch/api/actions/cluster/put_settings.rb +4 -0
- data/lib/elasticsearch/api/actions/cluster/remote_info.rb +4 -0
- data/lib/elasticsearch/api/actions/cluster/reroute.rb +4 -0
- data/lib/elasticsearch/api/actions/cluster/state.rb +4 -0
- data/lib/elasticsearch/api/actions/cluster/stats.rb +4 -0
- data/lib/elasticsearch/api/actions/count.rb +4 -0
- data/lib/elasticsearch/api/actions/count_percolate.rb +4 -0
- data/lib/elasticsearch/api/actions/create.rb +4 -0
- data/lib/elasticsearch/api/actions/delete.rb +4 -0
- data/lib/elasticsearch/api/actions/delete_by_query.rb +4 -0
- data/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb +4 -0
- data/lib/elasticsearch/api/actions/delete_script.rb +4 -0
- data/lib/elasticsearch/api/actions/delete_template.rb +25 -0
- data/lib/elasticsearch/api/actions/exists.rb +4 -0
- data/lib/elasticsearch/api/actions/exists_source.rb +4 -0
- data/lib/elasticsearch/api/actions/explain.rb +4 -0
- data/lib/elasticsearch/api/actions/field_caps.rb +4 -0
- data/lib/elasticsearch/api/actions/field_stats.rb +40 -0
- data/lib/elasticsearch/api/actions/get.rb +4 -0
- data/lib/elasticsearch/api/actions/get_script.rb +4 -0
- data/lib/elasticsearch/api/actions/get_source.rb +4 -0
- data/lib/elasticsearch/api/actions/get_template.rb +31 -0
- data/lib/elasticsearch/api/actions/index.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/analyze.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/clear_cache.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/close.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/create.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/delete.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/delete_alias.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/delete_mapping.rb +30 -0
- data/lib/elasticsearch/api/actions/indices/delete_template.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/delete_warmer.rb +36 -0
- data/lib/elasticsearch/api/actions/indices/exists.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/exists_alias.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/exists_template.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/exists_type.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/flush.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/flush_synced.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/forcemerge.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/freeze.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/get.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/get_alias.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/get_aliases.rb +41 -0
- data/lib/elasticsearch/api/actions/indices/get_field_mapping.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/get_mapping.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/get_settings.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/get_template.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/get_warmer.rb +66 -0
- data/lib/elasticsearch/api/actions/indices/open.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/optimize.rb +81 -0
- data/lib/elasticsearch/api/actions/indices/params_registry.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/put_alias.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/put_mapping.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/put_settings.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/put_template.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/put_warmer.rb +69 -0
- data/lib/elasticsearch/api/actions/indices/recovery.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/refresh.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/rollover.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/seal.rb +28 -0
- data/lib/elasticsearch/api/actions/indices/segments.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/shard_stores.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/shrink.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/snapshot_index.rb +48 -0
- data/lib/elasticsearch/api/actions/indices/split.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/stats.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/status.rb +67 -0
- data/lib/elasticsearch/api/actions/indices/unfreeze.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/update_aliases.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/upgrade.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/validate_query.rb +4 -0
- data/lib/elasticsearch/api/actions/info.rb +4 -0
- data/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb +4 -0
- data/lib/elasticsearch/api/actions/ingest/get_pipeline.rb +4 -0
- data/lib/elasticsearch/api/actions/ingest/params_registry.rb +4 -0
- data/lib/elasticsearch/api/actions/ingest/processor_grok.rb +4 -0
- data/lib/elasticsearch/api/actions/ingest/put_pipeline.rb +4 -0
- data/lib/elasticsearch/api/actions/ingest/simulate.rb +4 -0
- data/lib/elasticsearch/api/actions/list_benchmarks.rb +31 -0
- data/lib/elasticsearch/api/actions/mget.rb +4 -0
- data/lib/elasticsearch/api/actions/mlt.rb +134 -0
- data/lib/elasticsearch/api/actions/mpercolate.rb +66 -0
- data/lib/elasticsearch/api/actions/msearch.rb +4 -0
- data/lib/elasticsearch/api/actions/msearch_template.rb +4 -0
- data/lib/elasticsearch/api/actions/mtermvectors.rb +4 -0
- data/lib/elasticsearch/api/actions/nodes/hot_threads.rb +4 -0
- data/lib/elasticsearch/api/actions/nodes/info.rb +4 -0
- data/lib/elasticsearch/api/actions/nodes/params_registry.rb +4 -0
- data/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb +4 -0
- data/lib/elasticsearch/api/actions/nodes/shutdown.rb +43 -0
- data/lib/elasticsearch/api/actions/nodes/stats.rb +4 -0
- data/lib/elasticsearch/api/actions/nodes/usage.rb +4 -0
- data/lib/elasticsearch/api/actions/params_registry.rb +4 -0
- data/lib/elasticsearch/api/actions/percolate.rb +77 -0
- data/lib/elasticsearch/api/actions/ping.rb +4 -0
- data/lib/elasticsearch/api/actions/put_script.rb +4 -0
- data/lib/elasticsearch/api/actions/put_template.rb +29 -0
- data/lib/elasticsearch/api/actions/rank_eval.rb +5 -1
- data/lib/elasticsearch/api/actions/reindex.rb +4 -0
- data/lib/elasticsearch/api/actions/reindex_rethrottle.rb +4 -0
- data/lib/elasticsearch/api/actions/remote/info.rb +25 -0
- data/lib/elasticsearch/api/actions/render_search_template.rb +4 -0
- data/lib/elasticsearch/api/actions/scripts_painless_execute.rb +4 -0
- data/lib/elasticsearch/api/actions/scroll.rb +4 -0
- data/lib/elasticsearch/api/actions/search.rb +4 -0
- data/lib/elasticsearch/api/actions/search_exists.rb +67 -0
- data/lib/elasticsearch/api/actions/search_shards.rb +4 -0
- data/lib/elasticsearch/api/actions/search_template.rb +4 -0
- data/lib/elasticsearch/api/actions/snapshot/create.rb +4 -0
- data/lib/elasticsearch/api/actions/snapshot/create_repository.rb +4 -0
- data/lib/elasticsearch/api/actions/snapshot/delete.rb +4 -0
- data/lib/elasticsearch/api/actions/snapshot/delete_repository.rb +4 -0
- data/lib/elasticsearch/api/actions/snapshot/get.rb +4 -0
- data/lib/elasticsearch/api/actions/snapshot/get_repository.rb +4 -0
- data/lib/elasticsearch/api/actions/snapshot/params_registry.rb +4 -0
- data/lib/elasticsearch/api/actions/snapshot/restore.rb +4 -0
- data/lib/elasticsearch/api/actions/snapshot/status.rb +4 -0
- data/lib/elasticsearch/api/actions/snapshot/verify_repository.rb +4 -0
- data/lib/elasticsearch/api/actions/suggest.rb +53 -0
- data/lib/elasticsearch/api/actions/tasks/cancel.rb +4 -0
- data/lib/elasticsearch/api/actions/tasks/get.rb +4 -0
- data/lib/elasticsearch/api/actions/tasks/list.rb +4 -0
- data/lib/elasticsearch/api/actions/tasks/params_registry.rb +4 -0
- data/lib/elasticsearch/api/actions/termvectors.rb +4 -0
- data/lib/elasticsearch/api/actions/update.rb +4 -0
- data/lib/elasticsearch/api/actions/update_by_query.rb +4 -0
- data/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb +4 -0
- data/lib/elasticsearch/api/namespace/cat.rb +4 -0
- data/lib/elasticsearch/api/namespace/cluster.rb +4 -0
- data/lib/elasticsearch/api/namespace/common.rb +4 -0
- data/lib/elasticsearch/api/namespace/indices.rb +4 -0
- data/lib/elasticsearch/api/namespace/ingest.rb +4 -0
- data/lib/elasticsearch/api/namespace/nodes.rb +4 -0
- data/lib/elasticsearch/api/namespace/remote.rb +4 -0
- data/lib/elasticsearch/api/namespace/snapshot.rb +4 -0
- data/lib/elasticsearch/api/namespace/tasks.rb +4 -0
- data/lib/elasticsearch/api/utils.rb +4 -0
- data/lib/elasticsearch/api/version.rb +5 -1
- data/spec/elasticsearch/api/actions/abort_benchmark_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/benchmark_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/bulk_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/cat/aliases_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/cat/allocation_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/cat/count_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/cat/fielddata_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/cat/health_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/cat/help_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/cat/indices_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/cat/master_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/cat/nodeattrs_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/cat/nodes_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/cat/pending_tasks_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/cat/plugins_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/cat/recovery_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/cat/repositories_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/cat/segments_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/cat/shards_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/cat/snapshot_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/cat/tasks_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/cat/templates_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/cat/thread_pool_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/clear_scroll_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/cluster/allocation_explain_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/cluster/get_settings_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/cluster/health_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/cluster/pending_tasks_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/cluster/put_settings_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/cluster/remote_info_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/cluster/reroute_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/cluster/state_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/cluster/stats_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/count_percolate_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/count_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/create_document_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/delete_by_query_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/delete_document_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/delete_script_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/delete_template_spec.rb +21 -0
- data/spec/elasticsearch/api/actions/exists_document_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/explain_document_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/field_caps_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/field_stats_spec.rb +21 -0
- data/spec/elasticsearch/api/actions/get_document_source_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/get_document_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/get_script_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/get_template_spec.rb +56 -0
- data/spec/elasticsearch/api/actions/hashie_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/index_document_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/analyze_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/clear_cache_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/close_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/create_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/delete_alias_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/delete_mapping_spec.rb +81 -0
- data/spec/elasticsearch/api/actions/indices/delete_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/delete_template_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/delete_warmer_spec.rb +90 -0
- data/spec/elasticsearch/api/actions/indices/exists_alias_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/exists_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/exists_template_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/exists_type_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/flush_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/flush_synced_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/forcemerge_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/get_alias_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/get_aliases_spec.rb +59 -0
- data/spec/elasticsearch/api/actions/indices/get_field_mapping_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/get_mapping_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/get_settings_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/get_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/get_template_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/get_warmer_spec.rb +52 -0
- data/spec/elasticsearch/api/actions/indices/open_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/optimize_spec.rb +67 -0
- data/spec/elasticsearch/api/actions/indices/put_alias_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/put_mapping_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/put_settings_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/put_template_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/put_warmer_spec.rb +105 -0
- data/spec/elasticsearch/api/actions/indices/recovery_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/refresh_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/rollover_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/seal_spec.rb +22 -0
- data/spec/elasticsearch/api/actions/indices/segments_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/shard_stores_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/shrink_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/snapshot_index_spec.rb +93 -0
- data/spec/elasticsearch/api/actions/indices/split_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/status_spec.rb +96 -0
- data/spec/elasticsearch/api/actions/indices/update_aliases_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/upgrade_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/validate_query_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/info_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/ingest/delete_pipeline_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/ingest/get_pipeline_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/ingest/put_pipeline_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/ingest/simulate_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/json_builders_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/list_benchmarks_spec.rb +21 -0
- data/spec/elasticsearch/api/actions/mget_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/mlt_spec.rb +134 -0
- data/spec/elasticsearch/api/actions/mpercolate_spec.rb +53 -0
- data/spec/elasticsearch/api/actions/msearch_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/msearch_template_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/mtermvectors_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/nodes/hot_threads_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/nodes/info_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/nodes/reload_secure_settings_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/nodes/shutdown_spec.rb +63 -0
- data/spec/elasticsearch/api/actions/nodes/stats_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/ping_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/put_script_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/put_template_spec.rb +21 -0
- data/spec/elasticsearch/api/actions/rank_eval_spec.rb +113 -0
- data/spec/elasticsearch/api/actions/reindex_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/remote/info_spec.rb +22 -0
- data/spec/elasticsearch/api/actions/render_search_template_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/scoll_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/search_exists_spec.rb +67 -0
- data/spec/elasticsearch/api/actions/search_shards_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/search_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/search_template_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/snapshot/create_repository_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/snapshot/create_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/snapshot/delete_repository_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/snapshot/delete_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/snapshot/get_repository_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/snapshot/get_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/snapshot/restore_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/snapshot/status_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/snapshot/verify_repository_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/suggest_spec.rb +81 -0
- data/spec/elasticsearch/api/actions/tasks/cancel_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/tasks/get_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/tasks/list_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/termvectors_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/update_by_query_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/update_document_spec.rb +4 -0
- data/spec/elasticsearch/api/api_spec.rb +4 -0
- data/spec/elasticsearch/api/client_spec.rb +4 -0
- data/spec/elasticsearch/api/utils_spec.rb +4 -0
- data/spec/spec_helper.rb +5 -0
- data/test/integration/yaml_test_runner.rb +4 -0
- data/test/test_helper.rb +4 -0
- data/utils/thor/generate_api.rb +4 -0
- data/utils/thor/generate_source.rb +4 -0
- data/utils/thor/lister.rb +4 -0
- data/utils/thor/templates/ruby/test_helper.rb +4 -0
- metadata +124 -51
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Licensed to Elasticsearch B.V under one or more agreements.
|
|
2
|
+
# Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
|
3
|
+
# See the LICENSE file in the project root for more information
|
|
4
|
+
|
|
5
|
+
module Elasticsearch
|
|
6
|
+
module API
|
|
7
|
+
module Indices
|
|
8
|
+
module Actions
|
|
9
|
+
|
|
10
|
+
# Get a list of all aliases, or aliases for a specific index.
|
|
11
|
+
#
|
|
12
|
+
# @example Get a list of all aliases
|
|
13
|
+
#
|
|
14
|
+
# client.indices.get_aliases
|
|
15
|
+
#
|
|
16
|
+
# @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 filter
|
|
18
|
+
# @option arguments [Time] :timeout Explicit timestamp for the document
|
|
19
|
+
# @option arguments [Boolean] :local Return local information,
|
|
20
|
+
# do not retrieve the state from master node (default: false)
|
|
21
|
+
#
|
|
22
|
+
# @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-aliases.html
|
|
23
|
+
#
|
|
24
|
+
def get_aliases(arguments={})
|
|
25
|
+
method = HTTP_GET
|
|
26
|
+
path = Utils.__pathify Utils.__listify(arguments[:index]), '_aliases', Utils.__listify(arguments[:name])
|
|
27
|
+
|
|
28
|
+
params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
|
29
|
+
body = nil
|
|
30
|
+
|
|
31
|
+
perform_request(method, path, params, body).body
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Register this action with its valid params when the module is loaded.
|
|
35
|
+
#
|
|
36
|
+
# @since 6.2.0
|
|
37
|
+
ParamsRegistry.register(:get_aliases, [ :timeout, :local ].freeze)
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# Licensed to Elasticsearch B.V under one or more agreements.
|
|
2
|
+
# Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
|
3
|
+
# See the LICENSE file in the project root for more information
|
|
4
|
+
|
|
5
|
+
module Elasticsearch
|
|
6
|
+
module API
|
|
7
|
+
module Indices
|
|
8
|
+
module Actions
|
|
9
|
+
|
|
10
|
+
# Get one or more warmers for an index.
|
|
11
|
+
#
|
|
12
|
+
# @example Get all warmers
|
|
13
|
+
#
|
|
14
|
+
# client.indices.get_warmer index: '_all'
|
|
15
|
+
#
|
|
16
|
+
# @example Get all warmers matching a wildcard expression
|
|
17
|
+
#
|
|
18
|
+
# client.indices.get_warmer index: '_all', name: 'ba*'
|
|
19
|
+
#
|
|
20
|
+
# @example Get all warmers for a single index
|
|
21
|
+
#
|
|
22
|
+
# client.indices.get_warmer index: 'foo'
|
|
23
|
+
#
|
|
24
|
+
# @example Get a specific warmer
|
|
25
|
+
#
|
|
26
|
+
# client.indices.get_warmer index: 'foo', name: 'bar'
|
|
27
|
+
#
|
|
28
|
+
# @option arguments [List] :index A comma-separated list of index names to restrict the operation;
|
|
29
|
+
# use `_all` to perform the operation on all indices (*Required*)
|
|
30
|
+
# @option arguments [String] :name The name of the warmer (supports wildcards); leave empty to get all warmers
|
|
31
|
+
# @option arguments [List] :type A comma-separated list of document types to restrict the operation;
|
|
32
|
+
# leave empty to perform the operation on all types
|
|
33
|
+
# @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into
|
|
34
|
+
# no concrete indices. (This includes `_all` string or when no
|
|
35
|
+
# indices have been specified)
|
|
36
|
+
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that
|
|
37
|
+
# are open, closed or both. (options: open, closed)
|
|
38
|
+
# @option arguments [String] :ignore_indices When performed on multiple indices, allows to ignore
|
|
39
|
+
# `missing` ones (options: none, missing) @until 1.0
|
|
40
|
+
# @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when
|
|
41
|
+
# unavailable (missing, closed, etc)
|
|
42
|
+
#
|
|
43
|
+
# @see http://www.elasticsearch.org/guide/reference/api/admin-indices-warmers/
|
|
44
|
+
#
|
|
45
|
+
def get_warmer(arguments={})
|
|
46
|
+
method = HTTP_GET
|
|
47
|
+
path = Utils.__pathify( Utils.__listify(arguments[:index]), '_warmer', Utils.__escape(arguments[:name]) )
|
|
48
|
+
params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
|
49
|
+
body = nil
|
|
50
|
+
|
|
51
|
+
perform_request(method, path, params, body).body
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Register this action with its valid params when the module is loaded.
|
|
55
|
+
#
|
|
56
|
+
# @since 6.2.0
|
|
57
|
+
ParamsRegistry.register(:get_warmer, [
|
|
58
|
+
:ignore_indices,
|
|
59
|
+
:ignore_unavailable,
|
|
60
|
+
:allow_no_indices,
|
|
61
|
+
:expand_wildcards,
|
|
62
|
+
:local ].freeze)
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# Licensed to Elasticsearch B.V under one or more agreements.
|
|
2
|
+
# Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
|
3
|
+
# See the LICENSE file in the project root for more information
|
|
4
|
+
|
|
5
|
+
module Elasticsearch
|
|
6
|
+
module API
|
|
7
|
+
module Indices
|
|
8
|
+
module Actions
|
|
9
|
+
|
|
10
|
+
# Perform an index optimization.
|
|
11
|
+
#
|
|
12
|
+
# The "optimize" operation merges the index segments, increasing search performance.
|
|
13
|
+
# It corresponds to a Lucene "merge" operation.
|
|
14
|
+
#
|
|
15
|
+
# @deprecated The "optimize" action has been deprecated in favor of forcemerge [https://github.com/elastic/elasticsearch/pull/13778]
|
|
16
|
+
#
|
|
17
|
+
# @example Fully optimize an index (merge to one segment)
|
|
18
|
+
#
|
|
19
|
+
# client.indices.optimize index: 'foo', max_num_segments: 1, wait_for_merge: false
|
|
20
|
+
#
|
|
21
|
+
# @note The optimize operation is handled automatically by Elasticsearch, you don't need to perform it manually.
|
|
22
|
+
# The operation is expensive in terms of resources (I/O, CPU, memory) and can take a long time to
|
|
23
|
+
# finish, potentially reducing operability of your cluster; schedule the manual optimization accordingly.
|
|
24
|
+
#
|
|
25
|
+
# @option arguments [List] :index A comma-separated list of index names; use `_all`
|
|
26
|
+
# or empty string to perform the operation on all indices
|
|
27
|
+
# @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into
|
|
28
|
+
# no concrete indices. (This includes `_all` string or when no
|
|
29
|
+
# indices have been specified)
|
|
30
|
+
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that
|
|
31
|
+
# are open, closed or both. (options: open, closed)
|
|
32
|
+
# @option arguments [Boolean] :flush Specify whether the index should be flushed after performing the operation
|
|
33
|
+
# (default: true)
|
|
34
|
+
# @option arguments [Boolean] :force Force a merge operation to run, even when the index has a single segment
|
|
35
|
+
# (default: true)
|
|
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 [Number] :max_num_segments The number of segments the index should be merged into
|
|
41
|
+
# (default: dynamic)
|
|
42
|
+
# @option arguments [Time] :master_timeout Specify timeout for connection to master
|
|
43
|
+
# @option arguments [Boolean] :only_expunge_deletes Specify whether the operation should only expunge
|
|
44
|
+
# deleted documents
|
|
45
|
+
# @option arguments [Boolean] :refresh Specify whether the index should be refreshed after performing the operation
|
|
46
|
+
# (default: true)
|
|
47
|
+
# @option arguments [Boolean] :wait_for_merge Specify whether the request should block until the merge process
|
|
48
|
+
# is finished (default: true)
|
|
49
|
+
#
|
|
50
|
+
# @see http://www.elasticsearch.org/guide/reference/api/admin-indices-optimize/
|
|
51
|
+
#
|
|
52
|
+
def optimize(arguments={})
|
|
53
|
+
method = HTTP_POST
|
|
54
|
+
path = Utils.__pathify Utils.__listify(arguments[:index]), '_optimize'
|
|
55
|
+
|
|
56
|
+
params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
|
57
|
+
body = nil
|
|
58
|
+
|
|
59
|
+
perform_request(method, path, params, body).body
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Register this action with its valid params when the module is loaded.
|
|
63
|
+
#
|
|
64
|
+
# @since 6.2.0
|
|
65
|
+
ParamsRegistry.register(:optimize, [
|
|
66
|
+
:ignore_indices,
|
|
67
|
+
:ignore_unavailable,
|
|
68
|
+
:allow_no_indices,
|
|
69
|
+
:expand_wildcards,
|
|
70
|
+
:flush,
|
|
71
|
+
:force,
|
|
72
|
+
:master_timeout,
|
|
73
|
+
:max_num_segments,
|
|
74
|
+
:only_expunge_deletes,
|
|
75
|
+
:operation_threading,
|
|
76
|
+
:refresh,
|
|
77
|
+
:wait_for_merge ].freeze)
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
end
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# Licensed to Elasticsearch B.V under one or more agreements.
|
|
2
|
+
# Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
|
3
|
+
# See the LICENSE file in the project root for more information
|
|
4
|
+
|
|
5
|
+
module Elasticsearch
|
|
6
|
+
module API
|
|
7
|
+
module Indices
|
|
8
|
+
module Actions
|
|
9
|
+
|
|
10
|
+
# Create or update an index warmer.
|
|
11
|
+
#
|
|
12
|
+
# An index warmer will run before an index is refreshed, ie. available for search.
|
|
13
|
+
# It allows you to register "heavy" queries with popular filters, facets or sorts,
|
|
14
|
+
# increasing performance when the index is searched for the first time.
|
|
15
|
+
#
|
|
16
|
+
# @example Register a warmer which will populate the caches for `published` filter and sorting on `created_at`
|
|
17
|
+
#
|
|
18
|
+
# client.indices.put_warmer index: 'myindex',
|
|
19
|
+
# name: 'main',
|
|
20
|
+
# body: {
|
|
21
|
+
# query: { filtered: { filter: { term: { published: true } } } },
|
|
22
|
+
# sort: [ "created_at" ]
|
|
23
|
+
# }
|
|
24
|
+
#
|
|
25
|
+
# @option arguments [List] :index A comma-separated list of index names to register the warmer for; use `_all`
|
|
26
|
+
# or empty string to perform the operation on all indices (*Required*)
|
|
27
|
+
# @option arguments [String] :name The name of the warmer (*Required*)
|
|
28
|
+
# @option arguments [List] :type A comma-separated list of document types to register the warmer for;
|
|
29
|
+
# leave empty to perform the operation on all types
|
|
30
|
+
# @option arguments [Hash] :body The search request definition for the warmer
|
|
31
|
+
# (query, filters, facets, sorting, etc) (*Required*)
|
|
32
|
+
# @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into
|
|
33
|
+
# no concrete indices. (This includes `_all` string or when no
|
|
34
|
+
# indices have been specified)
|
|
35
|
+
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that
|
|
36
|
+
# are open, closed or both. (options: open, closed)
|
|
37
|
+
# @option arguments [String] :ignore_indices When performed on multiple indices, allows to ignore
|
|
38
|
+
# `missing` ones (options: none, missing) @until 1.0
|
|
39
|
+
# @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when
|
|
40
|
+
# unavailable (missing, closed, etc)
|
|
41
|
+
#
|
|
42
|
+
# @see http://www.elasticsearch.org/guide/reference/api/admin-indices-warmers/
|
|
43
|
+
#
|
|
44
|
+
def put_warmer(arguments={})
|
|
45
|
+
raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
|
|
46
|
+
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
|
47
|
+
method = HTTP_PUT
|
|
48
|
+
path = Utils.__pathify( Utils.__listify(arguments[:index]),
|
|
49
|
+
Utils.__listify(arguments[:type]),
|
|
50
|
+
'_warmer',
|
|
51
|
+
Utils.__listify(arguments[:name]) )
|
|
52
|
+
params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
|
53
|
+
body = arguments[:body]
|
|
54
|
+
|
|
55
|
+
perform_request(method, path, params, body).body
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Register this action with its valid params when the module is loaded.
|
|
59
|
+
#
|
|
60
|
+
# @since 6.2.0
|
|
61
|
+
ParamsRegistry.register(:put_warmer, [
|
|
62
|
+
:ignore_indices,
|
|
63
|
+
:ignore_unavailable,
|
|
64
|
+
:allow_no_indices,
|
|
65
|
+
:expand_wildcards ].freeze)
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|