elasticsearch-api 7.7.0.pre → 7.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/elasticsearch-api.gemspec +7 -2
- data/lib/elasticsearch/api/actions/bulk.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/aliases.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/allocation.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/count.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/fielddata.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/health.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/help.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/indices.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/master.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/nodeattrs.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/nodes.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/pending_tasks.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/plugins.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/recovery.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/repositories.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/segments.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/shards.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/snapshots.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/tasks.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/templates.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/thread_pool.rb +1 -1
- data/lib/elasticsearch/api/actions/clear_scroll.rb +1 -1
- data/lib/elasticsearch/api/actions/cluster/allocation_explain.rb +1 -1
- data/lib/elasticsearch/api/actions/cluster/delete_component_template.rb +1 -1
- data/lib/elasticsearch/api/actions/cluster/get_component_template.rb +1 -1
- data/lib/elasticsearch/api/actions/cluster/get_settings.rb +1 -1
- data/lib/elasticsearch/api/actions/cluster/health.rb +1 -1
- data/lib/elasticsearch/api/actions/cluster/pending_tasks.rb +1 -1
- data/lib/elasticsearch/api/actions/cluster/put_component_template.rb +1 -1
- data/lib/elasticsearch/api/actions/cluster/put_settings.rb +1 -1
- data/lib/elasticsearch/api/actions/cluster/remote_info.rb +1 -1
- data/lib/elasticsearch/api/actions/cluster/reroute.rb +1 -1
- data/lib/elasticsearch/api/actions/cluster/state.rb +1 -1
- data/lib/elasticsearch/api/actions/cluster/stats.rb +1 -1
- data/lib/elasticsearch/api/actions/count.rb +1 -1
- data/lib/elasticsearch/api/actions/create.rb +1 -1
- data/lib/elasticsearch/api/actions/delete.rb +1 -1
- data/lib/elasticsearch/api/actions/delete_by_query.rb +1 -1
- data/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb +1 -1
- data/lib/elasticsearch/api/actions/delete_script.rb +1 -1
- data/lib/elasticsearch/api/actions/exists.rb +1 -1
- data/lib/elasticsearch/api/actions/exists_source.rb +1 -1
- data/lib/elasticsearch/api/actions/explain.rb +1 -1
- data/lib/elasticsearch/api/actions/field_caps.rb +1 -1
- data/lib/elasticsearch/api/actions/get.rb +1 -1
- data/lib/elasticsearch/api/actions/get_script.rb +1 -1
- data/lib/elasticsearch/api/actions/get_script_context.rb +1 -1
- data/lib/elasticsearch/api/actions/get_script_languages.rb +1 -1
- data/lib/elasticsearch/api/actions/get_source.rb +1 -1
- data/lib/elasticsearch/api/actions/index.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/analyze.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/clear_cache.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/clone.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/close.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/create.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/create_data_stream.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/delete.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/delete_alias.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/delete_data_stream.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/delete_template.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/exists.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/exists_alias.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/exists_template.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/exists_type.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/flush.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/flush_synced.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/forcemerge.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/freeze.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/get.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/get_alias.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/get_data_streams.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/get_field_mapping.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/get_mapping.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/get_settings.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/get_template.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/get_upgrade.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/open.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/put_alias.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/put_mapping.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/put_settings.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/put_template.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/recovery.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/refresh.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/rollover.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/segments.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/shard_stores.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/shrink.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/split.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/stats.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/unfreeze.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/update_aliases.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/upgrade.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/validate_query.rb +1 -1
- data/lib/elasticsearch/api/actions/info.rb +1 -1
- data/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb +1 -1
- data/lib/elasticsearch/api/actions/ingest/get_pipeline.rb +1 -1
- data/lib/elasticsearch/api/actions/ingest/processor_grok.rb +1 -1
- data/lib/elasticsearch/api/actions/ingest/put_pipeline.rb +1 -1
- data/lib/elasticsearch/api/actions/ingest/simulate.rb +1 -1
- data/lib/elasticsearch/api/actions/mget.rb +1 -1
- data/lib/elasticsearch/api/actions/msearch.rb +1 -1
- data/lib/elasticsearch/api/actions/msearch_template.rb +1 -1
- data/lib/elasticsearch/api/actions/mtermvectors.rb +1 -1
- data/lib/elasticsearch/api/actions/nodes/hot_threads.rb +1 -1
- data/lib/elasticsearch/api/actions/nodes/info.rb +1 -1
- data/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb +3 -2
- data/lib/elasticsearch/api/actions/nodes/stats.rb +1 -1
- data/lib/elasticsearch/api/actions/nodes/usage.rb +1 -1
- data/lib/elasticsearch/api/actions/ping.rb +1 -1
- data/lib/elasticsearch/api/actions/put_script.rb +1 -1
- data/lib/elasticsearch/api/actions/rank_eval.rb +1 -1
- data/lib/elasticsearch/api/actions/reindex.rb +1 -1
- data/lib/elasticsearch/api/actions/reindex_rethrottle.rb +1 -1
- data/lib/elasticsearch/api/actions/render_search_template.rb +1 -1
- data/lib/elasticsearch/api/actions/scripts_painless_execute.rb +1 -1
- data/lib/elasticsearch/api/actions/scroll.rb +1 -1
- data/lib/elasticsearch/api/actions/search.rb +1 -1
- data/lib/elasticsearch/api/actions/search_shards.rb +1 -1
- data/lib/elasticsearch/api/actions/search_template.rb +1 -1
- data/lib/elasticsearch/api/actions/snapshot/cleanup_repository.rb +1 -1
- data/lib/elasticsearch/api/actions/snapshot/create.rb +1 -1
- data/lib/elasticsearch/api/actions/snapshot/create_repository.rb +1 -1
- data/lib/elasticsearch/api/actions/snapshot/delete.rb +1 -1
- data/lib/elasticsearch/api/actions/snapshot/delete_repository.rb +1 -1
- data/lib/elasticsearch/api/actions/snapshot/get.rb +1 -1
- data/lib/elasticsearch/api/actions/snapshot/get_repository.rb +1 -1
- data/lib/elasticsearch/api/actions/snapshot/restore.rb +1 -1
- data/lib/elasticsearch/api/actions/snapshot/status.rb +1 -1
- data/lib/elasticsearch/api/actions/snapshot/verify_repository.rb +1 -1
- data/lib/elasticsearch/api/actions/tasks/cancel.rb +1 -1
- data/lib/elasticsearch/api/actions/tasks/get.rb +1 -1
- data/lib/elasticsearch/api/actions/tasks/list.rb +1 -1
- data/lib/elasticsearch/api/actions/termvectors.rb +1 -1
- data/lib/elasticsearch/api/actions/update.rb +1 -1
- data/lib/elasticsearch/api/actions/update_by_query.rb +1 -1
- data/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb +1 -1
- data/lib/elasticsearch/api/version.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/freeze_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/unfreeze_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/nodes/reload_secure_settings_spec.rb +12 -7
- data/spec/rest_yaml_tests_helper.rb +4 -0
- data/utils/thor/generator/endpoint_specifics.rb +0 -2
- data/utils/thor/generator/files_helper.rb +10 -0
- data/utils/thor/templates/_documentation_top.erb +1 -1
- metadata +10 -6
@@ -28,7 +28,7 @@ module Elasticsearch
|
|
28
28
|
# Deprecated since version 7.0.0
|
29
29
|
#
|
30
30
|
#
|
31
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
31
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/docs-get.html
|
32
32
|
#
|
33
33
|
def exists_source(arguments = {})
|
34
34
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
@@ -32,7 +32,7 @@ module Elasticsearch
|
|
32
32
|
# Deprecated since version 7.0.0
|
33
33
|
#
|
34
34
|
#
|
35
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
35
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/search-explain.html
|
36
36
|
#
|
37
37
|
def explain(arguments = {})
|
38
38
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
@@ -17,7 +17,7 @@ module Elasticsearch
|
|
17
17
|
# @option arguments [Boolean] :include_unmapped Indicates whether unmapped fields should be included in the response.
|
18
18
|
# @option arguments [Hash] :headers Custom HTTP headers
|
19
19
|
#
|
20
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
20
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/search-field-caps.html
|
21
21
|
#
|
22
22
|
def field_caps(arguments = {})
|
23
23
|
headers = arguments.delete(:headers) || {}
|
@@ -29,7 +29,7 @@ module Elasticsearch
|
|
29
29
|
# Deprecated since version 7.0.0
|
30
30
|
#
|
31
31
|
#
|
32
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
32
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/docs-get.html
|
33
33
|
#
|
34
34
|
def get(arguments = {})
|
35
35
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
@@ -11,7 +11,7 @@ module Elasticsearch
|
|
11
11
|
# @option arguments [Time] :master_timeout Specify timeout for connection to master
|
12
12
|
# @option arguments [Hash] :headers Custom HTTP headers
|
13
13
|
#
|
14
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
14
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/modules-scripting.html
|
15
15
|
#
|
16
16
|
def get_script(arguments = {})
|
17
17
|
raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
|
@@ -9,7 +9,7 @@ module Elasticsearch
|
|
9
9
|
#
|
10
10
|
# @option arguments [Hash] :headers Custom HTTP headers
|
11
11
|
#
|
12
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/painless/
|
12
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/painless/7.7/painless-contexts.html
|
13
13
|
#
|
14
14
|
def get_script_context(arguments = {})
|
15
15
|
headers = arguments.delete(:headers) || {}
|
@@ -9,7 +9,7 @@ module Elasticsearch
|
|
9
9
|
#
|
10
10
|
# @option arguments [Hash] :headers Custom HTTP headers
|
11
11
|
#
|
12
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
12
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/modules-scripting.html
|
13
13
|
#
|
14
14
|
def get_script_languages(arguments = {})
|
15
15
|
headers = arguments.delete(:headers) || {}
|
@@ -28,7 +28,7 @@ module Elasticsearch
|
|
28
28
|
# Deprecated since version 7.0.0
|
29
29
|
#
|
30
30
|
#
|
31
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
31
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/docs-get.html
|
32
32
|
#
|
33
33
|
def get_source(arguments = {})
|
34
34
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
@@ -34,7 +34,7 @@ module Elasticsearch
|
|
34
34
|
# Deprecated since version 7.0.0
|
35
35
|
#
|
36
36
|
#
|
37
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
37
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/docs-index_.html
|
38
38
|
#
|
39
39
|
def index(arguments = {})
|
40
40
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
@@ -13,7 +13,7 @@ module Elasticsearch
|
|
13
13
|
# @option arguments [Hash] :headers Custom HTTP headers
|
14
14
|
# @option arguments [Hash] :body Define analyzer/tokenizer parameters and the text on which the analysis should be performed
|
15
15
|
#
|
16
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
16
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indices-analyze.html
|
17
17
|
#
|
18
18
|
def analyze(arguments = {})
|
19
19
|
headers = arguments.delete(:headers) || {}
|
@@ -21,7 +21,7 @@ module Elasticsearch
|
|
21
21
|
# @option arguments [Boolean] :request Clear request cache
|
22
22
|
# @option arguments [Hash] :headers Custom HTTP headers
|
23
23
|
#
|
24
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
24
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indices-clearcache.html
|
25
25
|
#
|
26
26
|
def clear_cache(arguments = {})
|
27
27
|
headers = arguments.delete(:headers) || {}
|
@@ -16,7 +16,7 @@ module Elasticsearch
|
|
16
16
|
# @option arguments [Hash] :headers Custom HTTP headers
|
17
17
|
# @option arguments [Hash] :body The configuration for the target index (`settings` and `aliases`)
|
18
18
|
#
|
19
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
19
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indices-clone-index.html
|
20
20
|
#
|
21
21
|
def clone(arguments = {})
|
22
22
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
@@ -19,7 +19,7 @@ module Elasticsearch
|
|
19
19
|
# @option arguments [String] :wait_for_active_shards Sets the number of active shards to wait for before the operation returns.
|
20
20
|
# @option arguments [Hash] :headers Custom HTTP headers
|
21
21
|
#
|
22
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
22
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indices-open-close.html
|
23
23
|
#
|
24
24
|
def close(arguments = {})
|
25
25
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
@@ -16,7 +16,7 @@ module Elasticsearch
|
|
16
16
|
# @option arguments [Hash] :headers Custom HTTP headers
|
17
17
|
# @option arguments [Hash] :body The configuration for the index (`settings` and `mappings`)
|
18
18
|
#
|
19
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
19
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indices-create-index.html
|
20
20
|
#
|
21
21
|
def create(arguments = {})
|
22
22
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
@@ -12,7 +12,7 @@ module Elasticsearch
|
|
12
12
|
# @option arguments [Hash] :headers Custom HTTP headers
|
13
13
|
# @option arguments [Hash] :body The data stream definition (*Required*)
|
14
14
|
#
|
15
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
15
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/data-streams.html
|
16
16
|
#
|
17
17
|
def create_data_stream(arguments = {})
|
18
18
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
@@ -18,7 +18,7 @@ module Elasticsearch
|
|
18
18
|
|
19
19
|
# @option arguments [Hash] :headers Custom HTTP headers
|
20
20
|
#
|
21
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
21
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indices-delete-index.html
|
22
22
|
#
|
23
23
|
def delete(arguments = {})
|
24
24
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
@@ -14,7 +14,7 @@ module Elasticsearch
|
|
14
14
|
# @option arguments [Time] :master_timeout Specify timeout for connection to master
|
15
15
|
# @option arguments [Hash] :headers Custom HTTP headers
|
16
16
|
#
|
17
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
17
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indices-aliases.html
|
18
18
|
#
|
19
19
|
def delete_alias(arguments = {})
|
20
20
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
@@ -11,7 +11,7 @@ module Elasticsearch
|
|
11
11
|
# @option arguments [String] :name The name of the data stream
|
12
12
|
# @option arguments [Hash] :headers Custom HTTP headers
|
13
13
|
#
|
14
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
14
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/data-streams.html
|
15
15
|
#
|
16
16
|
def delete_data_stream(arguments = {})
|
17
17
|
raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
|
@@ -13,7 +13,7 @@ module Elasticsearch
|
|
13
13
|
# @option arguments [Time] :master_timeout Specify timeout for connection to master
|
14
14
|
# @option arguments [Hash] :headers Custom HTTP headers
|
15
15
|
#
|
16
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
16
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indices-templates.html
|
17
17
|
#
|
18
18
|
def delete_template(arguments = {})
|
19
19
|
raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
|
@@ -19,7 +19,7 @@ module Elasticsearch
|
|
19
19
|
# @option arguments [Boolean] :include_defaults Whether to return all default setting for each of the indices.
|
20
20
|
# @option arguments [Hash] :headers Custom HTTP headers
|
21
21
|
#
|
22
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
22
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indices-exists.html
|
23
23
|
#
|
24
24
|
def exists(arguments = {})
|
25
25
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
@@ -18,7 +18,7 @@ module Elasticsearch
|
|
18
18
|
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
|
19
19
|
# @option arguments [Hash] :headers Custom HTTP headers
|
20
20
|
#
|
21
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
21
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indices-aliases.html
|
22
22
|
#
|
23
23
|
def exists_alias(arguments = {})
|
24
24
|
raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
|
@@ -14,7 +14,7 @@ module Elasticsearch
|
|
14
14
|
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
|
15
15
|
# @option arguments [Hash] :headers Custom HTTP headers
|
16
16
|
#
|
17
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
17
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indices-templates.html
|
18
18
|
#
|
19
19
|
def exists_template(arguments = {})
|
20
20
|
raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
|
@@ -18,7 +18,7 @@ module Elasticsearch
|
|
18
18
|
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
|
19
19
|
# @option arguments [Hash] :headers Custom HTTP headers
|
20
20
|
#
|
21
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
21
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indices-types-exists.html
|
22
22
|
#
|
23
23
|
def exists_type(arguments = {})
|
24
24
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
@@ -18,7 +18,7 @@ module Elasticsearch
|
|
18
18
|
|
19
19
|
# @option arguments [Hash] :headers Custom HTTP headers
|
20
20
|
#
|
21
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
21
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indices-flush.html
|
22
22
|
#
|
23
23
|
def flush(arguments = {})
|
24
24
|
headers = arguments.delete(:headers) || {}
|
@@ -16,7 +16,7 @@ module Elasticsearch
|
|
16
16
|
|
17
17
|
# @option arguments [Hash] :headers Custom HTTP headers
|
18
18
|
#
|
19
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
19
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indices-synced-flush-api.html
|
20
20
|
#
|
21
21
|
def flush_synced(arguments = {})
|
22
22
|
headers = arguments.delete(:headers) || {}
|
@@ -19,7 +19,7 @@ module Elasticsearch
|
|
19
19
|
# @option arguments [Boolean] :only_expunge_deletes Specify whether the operation should only expunge deleted documents
|
20
20
|
# @option arguments [Hash] :headers Custom HTTP headers
|
21
21
|
#
|
22
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
22
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indices-forcemerge.html
|
23
23
|
#
|
24
24
|
def forcemerge(arguments = {})
|
25
25
|
headers = arguments.delete(:headers) || {}
|
@@ -21,7 +21,7 @@ module Elasticsearch
|
|
21
21
|
# @option arguments [Time] :master_timeout Specify timeout for connection to master
|
22
22
|
# @option arguments [Hash] :headers Custom HTTP headers
|
23
23
|
#
|
24
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
24
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indices-get-index.html
|
25
25
|
#
|
26
26
|
def get(arguments = {})
|
27
27
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
@@ -18,7 +18,7 @@ module Elasticsearch
|
|
18
18
|
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
|
19
19
|
# @option arguments [Hash] :headers Custom HTTP headers
|
20
20
|
#
|
21
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
21
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indices-aliases.html
|
22
22
|
#
|
23
23
|
def get_alias(arguments = {})
|
24
24
|
headers = arguments.delete(:headers) || {}
|
@@ -11,7 +11,7 @@ module Elasticsearch
|
|
11
11
|
# @option arguments [List] :name The comma separated names of data streams
|
12
12
|
# @option arguments [Hash] :headers Custom HTTP headers
|
13
13
|
#
|
14
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
14
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/data-streams.html
|
15
15
|
#
|
16
16
|
def get_data_streams(arguments = {})
|
17
17
|
headers = arguments.delete(:headers) || {}
|
@@ -26,7 +26,7 @@ module Elasticsearch
|
|
26
26
|
# Deprecated since version 7.0.0
|
27
27
|
#
|
28
28
|
#
|
29
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
29
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indices-get-field-mapping.html
|
30
30
|
#
|
31
31
|
def get_field_mapping(arguments = {})
|
32
32
|
_fields = arguments.delete(:field) || arguments.delete(:fields)
|
@@ -25,7 +25,7 @@ module Elasticsearch
|
|
25
25
|
# Deprecated since version 7.0.0
|
26
26
|
#
|
27
27
|
#
|
28
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
28
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indices-get-mapping.html
|
29
29
|
#
|
30
30
|
def get_mapping(arguments = {})
|
31
31
|
headers = arguments.delete(:headers) || {}
|
@@ -21,7 +21,7 @@ module Elasticsearch
|
|
21
21
|
# @option arguments [Boolean] :include_defaults Whether to return all default setting for each of the indices.
|
22
22
|
# @option arguments [Hash] :headers Custom HTTP headers
|
23
23
|
#
|
24
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
24
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indices-get-settings.html
|
25
25
|
#
|
26
26
|
def get_settings(arguments = {})
|
27
27
|
headers = arguments.delete(:headers) || {}
|
@@ -15,7 +15,7 @@ module Elasticsearch
|
|
15
15
|
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
|
16
16
|
# @option arguments [Hash] :headers Custom HTTP headers
|
17
17
|
#
|
18
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
18
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indices-templates.html
|
19
19
|
#
|
20
20
|
def get_template(arguments = {})
|
21
21
|
headers = arguments.delete(:headers) || {}
|
@@ -16,7 +16,7 @@ module Elasticsearch
|
|
16
16
|
|
17
17
|
# @option arguments [Hash] :headers Custom HTTP headers
|
18
18
|
#
|
19
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
19
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indices-upgrade.html
|
20
20
|
#
|
21
21
|
def get_upgrade(arguments = {})
|
22
22
|
headers = arguments.delete(:headers) || {}
|
@@ -19,7 +19,7 @@ module Elasticsearch
|
|
19
19
|
# @option arguments [String] :wait_for_active_shards Sets the number of active shards to wait for before the operation returns.
|
20
20
|
# @option arguments [Hash] :headers Custom HTTP headers
|
21
21
|
#
|
22
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
22
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indices-open-close.html
|
23
23
|
#
|
24
24
|
def open(arguments = {})
|
25
25
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
@@ -15,7 +15,7 @@ module Elasticsearch
|
|
15
15
|
# @option arguments [Hash] :headers Custom HTTP headers
|
16
16
|
# @option arguments [Hash] :body The settings for the alias, such as `routing` or `filter`
|
17
17
|
#
|
18
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
18
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indices-aliases.html
|
19
19
|
#
|
20
20
|
def put_alias(arguments = {})
|
21
21
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
@@ -26,7 +26,7 @@ module Elasticsearch
|
|
26
26
|
# Deprecated since version 7.0.0
|
27
27
|
#
|
28
28
|
#
|
29
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
29
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indices-put-mapping.html
|
30
30
|
#
|
31
31
|
def put_mapping(arguments = {})
|
32
32
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
@@ -21,7 +21,7 @@ module Elasticsearch
|
|
21
21
|
# @option arguments [Hash] :headers Custom HTTP headers
|
22
22
|
# @option arguments [Hash] :body The index settings to be updated (*Required*)
|
23
23
|
#
|
24
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
24
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indices-update-settings.html
|
25
25
|
#
|
26
26
|
def put_settings(arguments = {})
|
27
27
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
@@ -16,7 +16,7 @@ module Elasticsearch
|
|
16
16
|
# @option arguments [Hash] :headers Custom HTTP headers
|
17
17
|
# @option arguments [Hash] :body The template definition (*Required*)
|
18
18
|
#
|
19
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
19
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indices-templates.html
|
20
20
|
#
|
21
21
|
def put_template(arguments = {})
|
22
22
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
@@ -13,7 +13,7 @@ module Elasticsearch
|
|
13
13
|
# @option arguments [Boolean] :active_only Display only those recoveries that are currently on-going
|
14
14
|
# @option arguments [Hash] :headers Custom HTTP headers
|
15
15
|
#
|
16
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
16
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indices-recovery.html
|
17
17
|
#
|
18
18
|
def recovery(arguments = {})
|
19
19
|
headers = arguments.delete(:headers) || {}
|
@@ -16,7 +16,7 @@ module Elasticsearch
|
|
16
16
|
|
17
17
|
# @option arguments [Hash] :headers Custom HTTP headers
|
18
18
|
#
|
19
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
19
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indices-refresh.html
|
20
20
|
#
|
21
21
|
def refresh(arguments = {})
|
22
22
|
headers = arguments.delete(:headers) || {}
|
@@ -19,7 +19,7 @@ module Elasticsearch
|
|
19
19
|
# @option arguments [Hash] :headers Custom HTTP headers
|
20
20
|
# @option arguments [Hash] :body The conditions that needs to be met for executing rollover
|
21
21
|
#
|
22
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
22
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indices-rollover-index.html
|
23
23
|
#
|
24
24
|
def rollover(arguments = {})
|
25
25
|
raise ArgumentError, "Required argument 'alias' missing" unless arguments[:alias]
|
@@ -17,7 +17,7 @@ module Elasticsearch
|
|
17
17
|
# @option arguments [Boolean] :verbose Includes detailed memory usage by Lucene.
|
18
18
|
# @option arguments [Hash] :headers Custom HTTP headers
|
19
19
|
#
|
20
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
20
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indices-segments.html
|
21
21
|
#
|
22
22
|
def segments(arguments = {})
|
23
23
|
headers = arguments.delete(:headers) || {}
|