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
data/lib/elasticsearch-api.rb
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
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
|
require 'elasticsearch/api'
|
data/lib/elasticsearch/api.rb
CHANGED
|
@@ -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
|
require "cgi"
|
|
6
19
|
require "multi_json"
|
|
@@ -32,8 +45,7 @@ module Elasticsearch
|
|
|
32
45
|
:format, # Search, Cat, ...
|
|
33
46
|
:pretty, # Pretty-print the response
|
|
34
47
|
:human, # Return numeric values in human readable format
|
|
35
|
-
:filter_path
|
|
36
|
-
:opaque_id # Use X-Opaque-Id
|
|
48
|
+
:filter_path # Filter the JSON response
|
|
37
49
|
]
|
|
38
50
|
|
|
39
51
|
HTTP_GET = 'GET'.freeze
|
|
@@ -43,6 +55,7 @@ module Elasticsearch
|
|
|
43
55
|
HTTP_DELETE = 'DELETE'.freeze
|
|
44
56
|
UNDERSCORE_SEARCH = '_search'.freeze
|
|
45
57
|
UNDERSCORE_ALL = '_all'.freeze
|
|
58
|
+
DEFAULT_DOC = '_doc'.freeze
|
|
46
59
|
|
|
47
60
|
# Auto-include all namespaces in the receiver
|
|
48
61
|
#
|
|
@@ -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,7 +27,7 @@ module Elasticsearch
|
|
|
14
27
|
#
|
|
15
28
|
# @option arguments [String] :name A benchmark name
|
|
16
29
|
#
|
|
17
|
-
# @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/
|
|
30
|
+
# @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-benchmark.html
|
|
18
31
|
#
|
|
19
32
|
def abort_benchmark(arguments={})
|
|
20
33
|
method = HTTP_POST
|
|
@@ -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
|
|
@@ -49,7 +62,7 @@ module Elasticsearch
|
|
|
49
62
|
# @option arguments [Boolean] :verbose Specify whether to return verbose statistics about each iteration
|
|
50
63
|
# (default: false)
|
|
51
64
|
#
|
|
52
|
-
# @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/
|
|
65
|
+
# @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-benchmark.html
|
|
53
66
|
#
|
|
54
67
|
def benchmark(arguments={})
|
|
55
68
|
method = HTTP_PUT
|
|
@@ -62,7 +75,7 @@ module Elasticsearch
|
|
|
62
75
|
|
|
63
76
|
# Register this action with its valid params when the module is loaded.
|
|
64
77
|
#
|
|
65
|
-
# @since 6.
|
|
78
|
+
# @since 6.1.1
|
|
66
79
|
ParamsRegistry.register(:benchmark, [ :verbose ].freeze)
|
|
67
80
|
end
|
|
68
81
|
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
|
|
@@ -53,13 +66,12 @@ module Elasticsearch
|
|
|
53
66
|
#
|
|
54
67
|
# @option arguments [String] :index Default index for items which don't provide one
|
|
55
68
|
# @option arguments [String] :type Default document type for items which don't provide one
|
|
56
|
-
# @option arguments [Hash] :body The operation definition and data (action-data pairs), separated by newlines (*Required*)
|
|
69
|
+
# @option arguments [Hash] :body The operation definition and data (action-data pairs), separated by newlines (*Required*)
|
|
57
70
|
# @option arguments [String] :wait_for_active_shards Sets the number of shard copies that must be active before proceeding with the bulk operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)
|
|
58
71
|
# @option arguments [String] :refresh If `true` then refresh the effected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes. (options: true, false, wait_for)
|
|
59
72
|
# @option arguments [String] :routing Specific routing value
|
|
60
73
|
# @option arguments [Time] :timeout Explicit operation timeout
|
|
61
74
|
# @option arguments [String] :type Default document type for items which don't provide one
|
|
62
|
-
# @option arguments [List] :fields Default comma-separated list of fields to return in the response for updates, can be overridden on each sub-request
|
|
63
75
|
# @option arguments [List] :_source True or false to return the _source field or not, or default list of fields to return, can be overridden on each sub-request
|
|
64
76
|
# @option arguments [List] :_source_excludes Default list of fields to exclude from the returned _source field, can be overridden on each sub-request
|
|
65
77
|
# @option arguments [List] :_source_includes Default list of fields to extract and return from the _source field, can be overridden on each sub-request
|
|
@@ -91,14 +103,13 @@ module Elasticsearch
|
|
|
91
103
|
|
|
92
104
|
# Register this action with its valid params when the module is loaded.
|
|
93
105
|
#
|
|
94
|
-
# @since 6.
|
|
106
|
+
# @since 6.1.1
|
|
95
107
|
ParamsRegistry.register(:bulk, [
|
|
96
108
|
:wait_for_active_shards,
|
|
97
109
|
:refresh,
|
|
98
110
|
:routing,
|
|
99
111
|
:timeout,
|
|
100
112
|
:type,
|
|
101
|
-
:fields,
|
|
102
113
|
:_source,
|
|
103
114
|
:_source_excludes,
|
|
104
115
|
:_source_includes,
|
|
@@ -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
|
|
@@ -38,15 +51,16 @@ module Elasticsearch
|
|
|
38
51
|
# client.cat.aliases format: 'json'
|
|
39
52
|
#
|
|
40
53
|
# @option arguments [List] :name A comma-separated list of alias names to return
|
|
41
|
-
# @option arguments [
|
|
42
|
-
# @option arguments [Boolean] :
|
|
43
|
-
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
|
44
|
-
# @option arguments [List] :h Comma-separated list of column names to display
|
|
45
|
-
# @option arguments [Boolean] :help Return help information
|
|
54
|
+
# @option arguments [List] :h Comma-separated list of column names to display -- see the `help` argument
|
|
55
|
+
# @option arguments [Boolean] :v Display column headers as part of the output
|
|
46
56
|
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
|
|
47
|
-
# @option arguments [
|
|
57
|
+
# @option arguments [String] :format The output format. Options: 'text', 'json'; default: 'text'
|
|
58
|
+
# @option arguments [Boolean] :help Return information about headers
|
|
59
|
+
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
|
|
60
|
+
# (default: false)
|
|
61
|
+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
|
48
62
|
#
|
|
49
|
-
# @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/
|
|
63
|
+
# @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-aliases.html
|
|
50
64
|
#
|
|
51
65
|
def aliases(arguments={})
|
|
52
66
|
name = arguments.delete(:name)
|
|
@@ -60,7 +74,7 @@ module Elasticsearch
|
|
|
60
74
|
|
|
61
75
|
# Register this action with its valid params when the module is loaded.
|
|
62
76
|
#
|
|
63
|
-
# @since 6.
|
|
77
|
+
# @since 6.1.1
|
|
64
78
|
ParamsRegistry.register(:aliases, [
|
|
65
79
|
:format,
|
|
66
80
|
:local,
|
|
@@ -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
|
|
@@ -34,16 +47,17 @@ module Elasticsearch
|
|
|
34
47
|
# client.cat.allocation format: 'json'
|
|
35
48
|
#
|
|
36
49
|
# @option arguments [List] :node_id A comma-separated list of node IDs or names to limit the returned information
|
|
37
|
-
# @option arguments [String] :
|
|
38
|
-
# @option arguments [
|
|
39
|
-
# @option arguments [Boolean] :
|
|
40
|
-
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
|
41
|
-
# @option arguments [List] :h Comma-separated list of column names to display
|
|
42
|
-
# @option arguments [Boolean] :help Return help information
|
|
50
|
+
# @option arguments [String] :bytes The unit in which to display byte values (options: b, k, m, g)
|
|
51
|
+
# @option arguments [List] :h Comma-separated list of column names to display -- see the `help` argument
|
|
52
|
+
# @option arguments [Boolean] :v Display column headers as part of the output
|
|
43
53
|
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
|
|
44
|
-
# @option arguments [
|
|
54
|
+
# @option arguments [String] :format The output format. Options: 'text', 'json'; default: 'text'
|
|
55
|
+
# @option arguments [Boolean] :help Return information about headers
|
|
56
|
+
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
|
|
57
|
+
# (default: false)
|
|
58
|
+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
|
45
59
|
#
|
|
46
|
-
# @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/
|
|
60
|
+
# @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-allocation.html
|
|
47
61
|
#
|
|
48
62
|
def allocation(arguments={})
|
|
49
63
|
node_id = arguments.delete(:node_id)
|
|
@@ -57,7 +71,7 @@ module Elasticsearch
|
|
|
57
71
|
|
|
58
72
|
# Register this action with its valid params when the module is loaded.
|
|
59
73
|
#
|
|
60
|
-
# @since 6.
|
|
74
|
+
# @since 6.1.1
|
|
61
75
|
ParamsRegistry.register(:allocation, [
|
|
62
76
|
:format,
|
|
63
77
|
:bytes,
|
|
@@ -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
|
|
@@ -30,15 +43,16 @@ module Elasticsearch
|
|
|
30
43
|
# client.cat.count format: 'json'
|
|
31
44
|
#
|
|
32
45
|
# @option arguments [List] :index A comma-separated list of index names to limit the returned information
|
|
33
|
-
# @option arguments [
|
|
34
|
-
# @option arguments [Boolean] :
|
|
35
|
-
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
|
36
|
-
# @option arguments [List] :h Comma-separated list of column names to display
|
|
37
|
-
# @option arguments [Boolean] :help Return help information
|
|
46
|
+
# @option arguments [List] :h Comma-separated list of column names to display -- see the `help` argument
|
|
47
|
+
# @option arguments [Boolean] :v Display column headers as part of the output
|
|
38
48
|
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
|
|
39
|
-
# @option arguments [
|
|
49
|
+
# @option arguments [String] :format The output format. Options: 'text', 'json'; default: 'text'
|
|
50
|
+
# @option arguments [Boolean] :help Return information about headers
|
|
51
|
+
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
|
|
52
|
+
# (default: false)
|
|
53
|
+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
|
40
54
|
#
|
|
41
|
-
# @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/
|
|
55
|
+
# @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-count.html
|
|
42
56
|
#
|
|
43
57
|
def count(arguments={})
|
|
44
58
|
index = arguments.delete(:index)
|
|
@@ -57,7 +71,7 @@ module Elasticsearch
|
|
|
57
71
|
|
|
58
72
|
# Register this action with its valid params when the module is loaded.
|
|
59
73
|
#
|
|
60
|
-
# @since 6.
|
|
74
|
+
# @since 6.1.1
|
|
61
75
|
ParamsRegistry.register(:count, [
|
|
62
76
|
:format,
|
|
63
77
|
:local,
|
|
@@ -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,18 +30,17 @@ module Elasticsearch
|
|
|
17
30
|
#
|
|
18
31
|
# client.cat.fielddata fields: 'title,body'
|
|
19
32
|
#
|
|
20
|
-
# @option arguments [List] :fields A comma-separated list of fields to
|
|
21
|
-
# @option arguments [String] :
|
|
22
|
-
# @option arguments [
|
|
23
|
-
#
|
|
33
|
+
# @option arguments [List] :fields A comma-separated list of fields to include in the output
|
|
34
|
+
# @option arguments [String] :bytes The unit in which to display byte values (options: b, k, m, g)
|
|
35
|
+
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
|
|
36
|
+
# (default: false)
|
|
24
37
|
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
|
25
38
|
# @option arguments [List] :h Comma-separated list of column names to display
|
|
26
39
|
# @option arguments [Boolean] :help Return help information
|
|
27
|
-
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
|
|
28
40
|
# @option arguments [Boolean] :v Verbose mode. Display column headers
|
|
29
|
-
# @option arguments [List] :
|
|
41
|
+
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
|
|
30
42
|
#
|
|
31
|
-
# @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/
|
|
43
|
+
# @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-fielddata.html
|
|
32
44
|
#
|
|
33
45
|
def fielddata(arguments={})
|
|
34
46
|
fields = arguments.delete(:fields)
|
|
@@ -43,7 +55,7 @@ module Elasticsearch
|
|
|
43
55
|
|
|
44
56
|
# Register this action with its valid params when the module is loaded.
|
|
45
57
|
#
|
|
46
|
-
# @since 6.
|
|
58
|
+
# @since 6.1.1
|
|
47
59
|
ParamsRegistry.register(:fielddata, [
|
|
48
60
|
:format,
|
|
49
61
|
:bytes,
|
|
@@ -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
|
|
@@ -21,16 +34,17 @@ module Elasticsearch
|
|
|
21
34
|
#
|
|
22
35
|
# client.cat.health format: 'json'
|
|
23
36
|
#
|
|
24
|
-
# @option arguments [
|
|
25
|
-
# @option arguments [
|
|
26
|
-
# @option arguments [
|
|
27
|
-
# @option arguments [List] :h Comma-separated list of column names to display
|
|
28
|
-
# @option arguments [Boolean] :help Return help information
|
|
37
|
+
# @option arguments [Boolean] :ts Whether to display timestamp information
|
|
38
|
+
# @option arguments [List] :h Comma-separated list of column names to display -- see the `help` argument
|
|
39
|
+
# @option arguments [Boolean] :v Display column headers as part of the output
|
|
29
40
|
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
|
|
30
|
-
# @option arguments [
|
|
31
|
-
# @option arguments [Boolean] :
|
|
41
|
+
# @option arguments [String] :format The output format. Options: 'text', 'json'; default: 'text'
|
|
42
|
+
# @option arguments [Boolean] :help Return information about headers
|
|
43
|
+
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
|
|
44
|
+
# (default: false)
|
|
45
|
+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
|
32
46
|
#
|
|
33
|
-
# @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/
|
|
47
|
+
# @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-health.html
|
|
34
48
|
#
|
|
35
49
|
def health(arguments={})
|
|
36
50
|
method = HTTP_GET
|
|
@@ -44,7 +58,7 @@ module Elasticsearch
|
|
|
44
58
|
|
|
45
59
|
# Register this action with its valid params when the module is loaded.
|
|
46
60
|
#
|
|
47
|
-
# @since 6.
|
|
61
|
+
# @since 6.1.1
|
|
48
62
|
ParamsRegistry.register(:health, [
|
|
49
63
|
:format,
|
|
50
64
|
:local,
|