elasticsearch-api 6.2.0 → 6.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/elasticsearch/api/actions/abort_benchmark.rb +1 -1
- data/lib/elasticsearch/api/actions/benchmark.rb +1 -1
- data/lib/elasticsearch/api/actions/bulk.rb +4 -6
- data/lib/elasticsearch/api/actions/cat/aliases.rb +10 -10
- data/lib/elasticsearch/api/actions/cat/allocation.rb +11 -11
- data/lib/elasticsearch/api/actions/cat/count.rb +10 -10
- data/lib/elasticsearch/api/actions/cat/fielddata.rb +9 -7
- data/lib/elasticsearch/api/actions/cat/health.rb +11 -11
- data/lib/elasticsearch/api/actions/cat/help.rb +4 -2
- data/lib/elasticsearch/api/actions/cat/indices.rb +14 -15
- data/lib/elasticsearch/api/actions/cat/master.rb +10 -10
- data/lib/elasticsearch/api/actions/cat/nodeattrs.rb +6 -4
- data/lib/elasticsearch/api/actions/cat/nodes.rb +10 -10
- data/lib/elasticsearch/api/actions/cat/pending_tasks.rb +10 -10
- data/lib/elasticsearch/api/actions/cat/plugins.rb +7 -6
- data/lib/elasticsearch/api/actions/cat/recovery.rb +10 -12
- data/lib/elasticsearch/api/actions/cat/repositories.rb +7 -3
- data/lib/elasticsearch/api/actions/cat/segments.rb +9 -7
- data/lib/elasticsearch/api/actions/cat/shards.rb +12 -12
- data/lib/elasticsearch/api/actions/cat/snapshots.rb +8 -4
- data/lib/elasticsearch/api/actions/cat/tasks.rb +4 -6
- data/lib/elasticsearch/api/actions/cat/templates.rb +6 -6
- data/lib/elasticsearch/api/actions/cat/thread_pool.rb +13 -17
- data/lib/elasticsearch/api/actions/clear_scroll.rb +7 -0
- data/lib/elasticsearch/api/actions/cluster/allocation_explain.rb +2 -3
- data/lib/elasticsearch/api/actions/cluster/get_settings.rb +5 -2
- data/lib/elasticsearch/api/actions/cluster/health.rb +11 -20
- data/lib/elasticsearch/api/actions/cluster/pending_tasks.rb +2 -3
- data/lib/elasticsearch/api/actions/cluster/put_settings.rb +8 -3
- data/lib/elasticsearch/api/actions/cluster/remote_info.rb +7 -1
- data/lib/elasticsearch/api/actions/cluster/reroute.rb +7 -7
- data/lib/elasticsearch/api/actions/cluster/state.rb +18 -15
- data/lib/elasticsearch/api/actions/cluster/stats.rb +12 -5
- data/lib/elasticsearch/api/actions/count.rb +12 -23
- data/lib/elasticsearch/api/actions/count_percolate.rb +1 -1
- data/lib/elasticsearch/api/actions/delete.rb +16 -8
- data/lib/elasticsearch/api/actions/delete_by_query.rb +7 -9
- data/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb +29 -0
- data/lib/elasticsearch/api/actions/delete_script.rb +5 -6
- data/lib/elasticsearch/api/actions/exists.rb +3 -4
- data/lib/elasticsearch/api/actions/exists_source.rb +51 -0
- data/lib/elasticsearch/api/actions/explain.rb +11 -25
- data/lib/elasticsearch/api/actions/field_caps.rb +2 -2
- data/lib/elasticsearch/api/actions/get.rb +13 -19
- data/lib/elasticsearch/api/actions/get_script.rb +9 -2
- data/lib/elasticsearch/api/actions/get_source.rb +10 -14
- data/lib/elasticsearch/api/actions/index.rb +10 -16
- data/lib/elasticsearch/api/actions/indices/analyze.rb +3 -27
- data/lib/elasticsearch/api/actions/indices/clear_cache.rb +2 -4
- data/lib/elasticsearch/api/actions/indices/close.rb +9 -15
- data/lib/elasticsearch/api/actions/indices/create.rb +7 -7
- data/lib/elasticsearch/api/actions/indices/delete.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/delete_alias.rb +7 -4
- data/lib/elasticsearch/api/actions/indices/delete_template.rb +5 -2
- data/lib/elasticsearch/api/actions/indices/exists.rb +11 -17
- data/lib/elasticsearch/api/actions/indices/exists_alias.rb +6 -14
- data/lib/elasticsearch/api/actions/indices/exists_template.rb +8 -4
- data/lib/elasticsearch/api/actions/indices/exists_type.rb +6 -15
- data/lib/elasticsearch/api/actions/indices/flush.rb +5 -9
- data/lib/elasticsearch/api/actions/indices/flush_synced.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/forcemerge.rb +13 -11
- data/lib/elasticsearch/api/actions/indices/freeze.rb +0 -1
- data/lib/elasticsearch/api/actions/indices/get.rb +9 -15
- data/lib/elasticsearch/api/actions/indices/get_alias.rb +6 -14
- data/lib/elasticsearch/api/actions/indices/get_field_mapping.rb +11 -15
- data/lib/elasticsearch/api/actions/indices/get_mapping.rb +12 -16
- data/lib/elasticsearch/api/actions/indices/get_settings.rb +12 -21
- data/lib/elasticsearch/api/actions/indices/get_template.rb +8 -5
- data/lib/elasticsearch/api/actions/indices/open.rb +9 -15
- data/lib/elasticsearch/api/actions/indices/put_alias.rb +6 -3
- data/lib/elasticsearch/api/actions/indices/put_mapping.rb +11 -23
- data/lib/elasticsearch/api/actions/indices/put_settings.rb +10 -20
- data/lib/elasticsearch/api/actions/indices/put_template.rb +10 -5
- data/lib/elasticsearch/api/actions/indices/recovery.rb +2 -4
- data/lib/elasticsearch/api/actions/indices/refresh.rb +6 -14
- data/lib/elasticsearch/api/actions/indices/rollover.rb +6 -5
- data/lib/elasticsearch/api/actions/indices/segments.rb +6 -14
- data/lib/elasticsearch/api/actions/indices/shard_stores.rb +2 -4
- data/lib/elasticsearch/api/actions/indices/shrink.rb +6 -7
- data/lib/elasticsearch/api/actions/indices/split.rb +2 -1
- data/lib/elasticsearch/api/actions/indices/update_aliases.rb +7 -4
- data/lib/elasticsearch/api/actions/indices/upgrade.rb +10 -13
- data/lib/elasticsearch/api/actions/indices/validate_query.rb +14 -25
- data/lib/elasticsearch/api/actions/info.rb +6 -0
- data/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb +1 -1
- data/lib/elasticsearch/api/actions/ingest/get_pipeline.rb +4 -3
- data/lib/elasticsearch/api/actions/ingest/processor_grok.rb +29 -0
- data/lib/elasticsearch/api/actions/ingest/put_pipeline.rb +1 -1
- data/lib/elasticsearch/api/actions/ingest/simulate.rb +5 -5
- data/lib/elasticsearch/api/actions/mget.rb +8 -17
- data/lib/elasticsearch/api/actions/msearch.rb +7 -2
- data/lib/elasticsearch/api/actions/msearch_template.rb +8 -1
- data/lib/elasticsearch/api/actions/mtermvectors.rb +21 -22
- data/lib/elasticsearch/api/actions/nodes/hot_threads.rb +4 -6
- data/lib/elasticsearch/api/actions/nodes/info.rb +6 -26
- data/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb +10 -4
- data/lib/elasticsearch/api/actions/nodes/stats.rb +11 -30
- data/lib/elasticsearch/api/actions/nodes/usage.rb +31 -0
- data/lib/elasticsearch/api/actions/ping.rb +6 -0
- data/lib/elasticsearch/api/actions/put_script.rb +10 -9
- data/lib/elasticsearch/api/actions/rank_eval.rb +36 -0
- data/lib/elasticsearch/api/actions/reindex.rb +9 -14
- data/lib/elasticsearch/api/actions/reindex_rethrottle.rb +29 -0
- data/lib/elasticsearch/api/actions/render_search_template.rb +1 -1
- data/lib/elasticsearch/api/actions/scripts_painless_execute.rb +27 -0
- data/lib/elasticsearch/api/actions/scroll.rb +3 -2
- data/lib/elasticsearch/api/actions/search.rb +36 -53
- data/lib/elasticsearch/api/actions/search_shards.rb +7 -14
- data/lib/elasticsearch/api/actions/search_template.rb +20 -19
- data/lib/elasticsearch/api/actions/snapshot/create.rb +2 -3
- data/lib/elasticsearch/api/actions/snapshot/create_repository.rb +4 -3
- data/lib/elasticsearch/api/actions/snapshot/delete.rb +3 -3
- data/lib/elasticsearch/api/actions/snapshot/delete_repository.rb +1 -2
- data/lib/elasticsearch/api/actions/snapshot/get.rb +3 -3
- data/lib/elasticsearch/api/actions/snapshot/get_repository.rb +3 -6
- data/lib/elasticsearch/api/actions/snapshot/restore.rb +1 -1
- data/lib/elasticsearch/api/actions/snapshot/status.rb +4 -5
- data/lib/elasticsearch/api/actions/snapshot/verify_repository.rb +1 -2
- data/lib/elasticsearch/api/actions/tasks/cancel.rb +7 -13
- data/lib/elasticsearch/api/actions/tasks/get.rb +6 -3
- data/lib/elasticsearch/api/actions/tasks/list.rb +10 -16
- data/lib/elasticsearch/api/actions/termvectors.rb +22 -21
- data/lib/elasticsearch/api/actions/update.rb +19 -33
- data/lib/elasticsearch/api/actions/update_by_query.rb +13 -33
- data/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb +29 -0
- data/lib/elasticsearch/api/version.rb +1 -1
- data/spec/elasticsearch/api/actions/cluster/state_spec.rb +0 -17
- data/spec/elasticsearch/api/actions/cluster/stats_spec.rb +17 -0
- data/spec/elasticsearch/api/actions/indices/analyze_spec.rb +0 -37
- data/spec/elasticsearch/api/actions/indices/put_settings_spec.rb +0 -15
- data/spec/elasticsearch/api/actions/indices/refresh_spec.rb +0 -15
- data/spec/elasticsearch/api/actions/indices/segments_spec.rb +0 -15
- data/spec/elasticsearch/api/actions/mget_spec.rb +0 -15
- data/spec/elasticsearch/api/actions/search_spec.rb +0 -15
- data/test/integration/yaml_test_runner.rb +2 -4
- data/utils/thor/generate_source.rb +1 -0
- data/utils/thor/templates/ruby/method.erb +7 -5
- metadata +12 -73
- data/lib/elasticsearch/api/actions/delete_template.rb +0 -21
- data/lib/elasticsearch/api/actions/field_stats.rb +0 -36
- data/lib/elasticsearch/api/actions/get_template.rb +0 -27
- data/lib/elasticsearch/api/actions/indices/delete_mapping.rb +0 -26
- data/lib/elasticsearch/api/actions/indices/delete_warmer.rb +0 -32
- data/lib/elasticsearch/api/actions/indices/get_aliases.rb +0 -37
- data/lib/elasticsearch/api/actions/indices/get_warmer.rb +0 -62
- data/lib/elasticsearch/api/actions/indices/optimize.rb +0 -77
- data/lib/elasticsearch/api/actions/indices/put_warmer.rb +0 -65
- data/lib/elasticsearch/api/actions/indices/seal.rb +0 -24
- data/lib/elasticsearch/api/actions/indices/snapshot_index.rb +0 -44
- data/lib/elasticsearch/api/actions/indices/status.rb +0 -63
- data/lib/elasticsearch/api/actions/list_benchmarks.rb +0 -27
- data/lib/elasticsearch/api/actions/mlt.rb +0 -130
- data/lib/elasticsearch/api/actions/mpercolate.rb +0 -62
- data/lib/elasticsearch/api/actions/nodes/shutdown.rb +0 -39
- data/lib/elasticsearch/api/actions/percolate.rb +0 -73
- data/lib/elasticsearch/api/actions/put_template.rb +0 -25
- data/lib/elasticsearch/api/actions/remote/info.rb +0 -21
- data/lib/elasticsearch/api/actions/search_exists.rb +0 -63
- data/lib/elasticsearch/api/actions/suggest.rb +0 -49
- data/spec/elasticsearch/api/actions/delete_template_spec.rb +0 -17
- data/spec/elasticsearch/api/actions/field_stats_spec.rb +0 -17
- data/spec/elasticsearch/api/actions/get_template_spec.rb +0 -52
- data/spec/elasticsearch/api/actions/indices/delete_mapping_spec.rb +0 -77
- data/spec/elasticsearch/api/actions/indices/delete_warmer_spec.rb +0 -86
- data/spec/elasticsearch/api/actions/indices/freeze_spec.rb +0 -68
- data/spec/elasticsearch/api/actions/indices/get_aliases_spec.rb +0 -55
- data/spec/elasticsearch/api/actions/indices/get_warmer_spec.rb +0 -48
- data/spec/elasticsearch/api/actions/indices/optimize_spec.rb +0 -63
- data/spec/elasticsearch/api/actions/indices/put_warmer_spec.rb +0 -101
- data/spec/elasticsearch/api/actions/indices/seal_spec.rb +0 -18
- data/spec/elasticsearch/api/actions/indices/snapshot_index_spec.rb +0 -89
- data/spec/elasticsearch/api/actions/indices/stats_spec.rb +0 -108
- data/spec/elasticsearch/api/actions/indices/status_spec.rb +0 -92
- data/spec/elasticsearch/api/actions/indices/unfreeze_spec.rb +0 -68
- data/spec/elasticsearch/api/actions/list_benchmarks_spec.rb +0 -17
- data/spec/elasticsearch/api/actions/mlt_spec.rb +0 -117
- data/spec/elasticsearch/api/actions/mpercolate_spec.rb +0 -49
- data/spec/elasticsearch/api/actions/nodes/shutdown_spec.rb +0 -59
- data/spec/elasticsearch/api/actions/percolate_spec.rb +0 -67
- data/spec/elasticsearch/api/actions/put_template_spec.rb +0 -17
- data/spec/elasticsearch/api/actions/remote/info_spec.rb +0 -18
- data/spec/elasticsearch/api/actions/search_exists_spec.rb +0 -17
- data/spec/elasticsearch/api/actions/suggest_spec.rb +0 -77
@@ -59,14 +59,13 @@ module Elasticsearch
|
|
59
59
|
# }
|
60
60
|
#
|
61
61
|
# @option arguments [String] :index The name of the index (*Required*)
|
62
|
-
# @option arguments [Hash] :body
|
63
|
-
# @option arguments [
|
64
|
-
# with the same name across all types
|
65
|
-
# @option arguments [Number] :wait_for_active_shards Wait until the specified number of shards is active
|
62
|
+
# @option arguments [Hash] :body The configuration for the index (`settings` and `mappings`)
|
63
|
+
# @option arguments [String] :wait_for_active_shards Set the number of active shards to wait for before the operation returns.
|
66
64
|
# @option arguments [Time] :timeout Explicit operation timeout
|
67
|
-
# @option arguments [
|
65
|
+
# @option arguments [Time] :master_timeout Specify timeout for connection to master
|
66
|
+
# @option arguments [Boolean] :update_all_types Whether to update the mapping for all fields with the same name across all types or not
|
68
67
|
#
|
69
|
-
# @see http://www.
|
68
|
+
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html
|
70
69
|
#
|
71
70
|
def create(arguments={})
|
72
71
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
@@ -83,10 +82,11 @@ module Elasticsearch
|
|
83
82
|
#
|
84
83
|
# @since 6.2.0
|
85
84
|
ParamsRegistry.register(:create, [
|
85
|
+
:wait_for_active_shards,
|
86
86
|
:timeout,
|
87
87
|
:master_timeout,
|
88
88
|
:update_all_types,
|
89
|
-
:
|
89
|
+
:include_type_name ].freeze)
|
90
90
|
end
|
91
91
|
end
|
92
92
|
end
|
@@ -23,15 +23,14 @@ module Elasticsearch
|
|
23
23
|
#
|
24
24
|
# client.indices.delete index: '_all'
|
25
25
|
#
|
26
|
-
# @option arguments [List] :index A comma-separated list of indices to delete;
|
27
|
-
# use `_all` to delete all indices
|
26
|
+
# @option arguments [List] :index A comma-separated list of indices to delete; use `_all` or `*` string to delete all indices (*Required*)
|
28
27
|
# @option arguments [Time] :timeout Explicit operation timeout
|
29
28
|
# @option arguments [Time] :master_timeout Specify timeout for connection to master
|
30
29
|
# @option arguments [Boolean] :ignore_unavailable Ignore unavailable indexes (default: false)
|
31
30
|
# @option arguments [Boolean] :allow_no_indices Ignore if a wildcard expression resolves to no concrete indices (default: false)
|
32
|
-
# @option arguments [
|
31
|
+
# @option arguments [String] :expand_wildcards Whether wildcard expressions should get expanded to open or closed indices (default: open) (options: open, closed, none, all)
|
33
32
|
#
|
34
|
-
# @see http://www.
|
33
|
+
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-index.html
|
35
34
|
#
|
36
35
|
def delete(arguments={})
|
37
36
|
method = HTTP_DELETE
|
@@ -11,11 +11,12 @@ module Elasticsearch
|
|
11
11
|
#
|
12
12
|
# See the {Indices::Actions#update_aliases} for performing operations with index aliases in bulk.
|
13
13
|
#
|
14
|
-
# @option arguments [
|
15
|
-
# @option arguments [
|
14
|
+
# @option arguments [List] :index A comma-separated list of index names (supports wildcards); use `_all` for all indices (*Required*)
|
15
|
+
# @option arguments [List] :name A comma-separated list of aliases to delete (supports wildcards); use `_all` to delete all aliases for the specified indices. (*Required*)
|
16
16
|
# @option arguments [Time] :timeout Explicit timestamp for the document
|
17
|
+
# @option arguments [Time] :master_timeout Specify timeout for connection to master
|
17
18
|
#
|
18
|
-
# @see http://www.
|
19
|
+
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html
|
19
20
|
#
|
20
21
|
def delete_alias(arguments={})
|
21
22
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
@@ -32,7 +33,9 @@ module Elasticsearch
|
|
32
33
|
# Register this action with its valid params when the module is loaded.
|
33
34
|
#
|
34
35
|
# @since 6.2.0
|
35
|
-
ParamsRegistry.register(:delete_alias, [
|
36
|
+
ParamsRegistry.register(:delete_alias, [
|
37
|
+
:timeout,
|
38
|
+
:master_timeout ].freeze)
|
36
39
|
end
|
37
40
|
end
|
38
41
|
end
|
@@ -15,8 +15,9 @@ module Elasticsearch
|
|
15
15
|
#
|
16
16
|
# @option arguments [String] :name The name of the template (*Required*)
|
17
17
|
# @option arguments [Time] :timeout Explicit operation timeout
|
18
|
+
# @option arguments [Time] :master_timeout Specify timeout for connection to master
|
18
19
|
#
|
19
|
-
# @see http://www.
|
20
|
+
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html
|
20
21
|
#
|
21
22
|
def delete_template(arguments={})
|
22
23
|
raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
|
@@ -36,7 +37,9 @@ module Elasticsearch
|
|
36
37
|
# Register this action with its valid params when the module is loaded.
|
37
38
|
#
|
38
39
|
# @since 6.2.0
|
39
|
-
ParamsRegistry.register(:delete_template, [
|
40
|
+
ParamsRegistry.register(:delete_template, [
|
41
|
+
:timeout,
|
42
|
+
:master_timeout ].freeze)
|
40
43
|
end
|
41
44
|
end
|
42
45
|
end
|
@@ -9,22 +9,15 @@ module Elasticsearch
|
|
9
9
|
#
|
10
10
|
# client.indices.exists? index: 'myindex'
|
11
11
|
#
|
12
|
-
# @option arguments [List] :index A comma-separated list of
|
13
|
-
# @option arguments [Boolean] :
|
14
|
-
#
|
15
|
-
#
|
16
|
-
# @option arguments [String] :expand_wildcards Whether
|
17
|
-
#
|
18
|
-
# @option arguments [
|
19
|
-
# `missing` ones (options: none, missing) @until 1.0
|
20
|
-
# @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when
|
21
|
-
# unavailable (missing, closed, etc)
|
22
|
-
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
|
23
|
-
# (default: false)
|
12
|
+
# @option arguments [List] :index A comma-separated list of index names (*Required*)
|
13
|
+
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
|
14
|
+
# @option arguments [Boolean] :ignore_unavailable Ignore unavailable indexes (default: false)
|
15
|
+
# @option arguments [Boolean] :allow_no_indices Ignore if a wildcard expression resolves to no concrete indices (default: false)
|
16
|
+
# @option arguments [String] :expand_wildcards Whether wildcard expressions should get expanded to open or closed indices (default: open) (options: open, closed, none, all)
|
17
|
+
# @option arguments [Boolean] :flat_settings Return settings in flat format (default: false)
|
18
|
+
# @option arguments [Boolean] :include_defaults Whether to return all default setting for each of the indices.
|
24
19
|
#
|
25
|
-
# @
|
26
|
-
#
|
27
|
-
# @see http://www.elasticsearch.org/guide/reference/api/admin-indices-indices-exists/
|
20
|
+
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-exists.html
|
28
21
|
#
|
29
22
|
def exists(arguments={})
|
30
23
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
@@ -43,11 +36,12 @@ module Elasticsearch
|
|
43
36
|
#
|
44
37
|
# @since 6.2.0
|
45
38
|
ParamsRegistry.register(:exists, [
|
46
|
-
:
|
39
|
+
:local,
|
47
40
|
:ignore_unavailable,
|
48
41
|
:allow_no_indices,
|
49
42
|
:expand_wildcards,
|
50
|
-
:
|
43
|
+
:flat_settings,
|
44
|
+
:include_defaults ].freeze)
|
51
45
|
end
|
52
46
|
end
|
53
47
|
end
|
@@ -10,20 +10,13 @@ module Elasticsearch
|
|
10
10
|
# client.indices.exists_alias? name: 'myalias'
|
11
11
|
#
|
12
12
|
# @option arguments [List] :index A comma-separated list of index names to filter aliases
|
13
|
-
# @option arguments [List] :name A comma-separated list of alias names to return
|
14
|
-
# @option arguments [Boolean] :
|
15
|
-
#
|
16
|
-
#
|
17
|
-
# @option arguments [
|
18
|
-
# are open, closed or both. (options: open, closed)
|
19
|
-
# @option arguments [String] :ignore_indices When performed on multiple indices, allows to ignore
|
20
|
-
# `missing` ones (options: none, missing) @until 1.0
|
21
|
-
# @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when
|
22
|
-
# unavailable (missing, closed, etc)
|
23
|
-
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
|
24
|
-
# (default: false)
|
13
|
+
# @option arguments [List] :name A comma-separated list of alias names to return (*Required*)
|
14
|
+
# @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
15
|
+
# @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
16
|
+
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, none, all)
|
17
|
+
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
|
25
18
|
#
|
26
|
-
# @see http://www.
|
19
|
+
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html
|
27
20
|
#
|
28
21
|
def exists_alias(arguments={})
|
29
22
|
method = HTTP_HEAD
|
@@ -42,7 +35,6 @@ module Elasticsearch
|
|
42
35
|
#
|
43
36
|
# @since 6.2.0
|
44
37
|
ParamsRegistry.register(:exists_alias, [
|
45
|
-
:ignore_indices,
|
46
38
|
:ignore_unavailable,
|
47
39
|
:allow_no_indices,
|
48
40
|
:expand_wildcards,
|
@@ -7,11 +7,12 @@ module Elasticsearch
|
|
7
7
|
#
|
8
8
|
# client.indices.exists_template? name: 'mytemplate'
|
9
9
|
#
|
10
|
-
# @option arguments [
|
11
|
-
# @option arguments [Boolean] :
|
10
|
+
# @option arguments [List] :name The comma separated names of the index templates (*Required*)
|
11
|
+
# @option arguments [Boolean] :flat_settings Return settings in flat format (default: false)
|
12
12
|
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
13
|
+
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
|
13
14
|
#
|
14
|
-
# @see http://www.
|
15
|
+
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html
|
15
16
|
#
|
16
17
|
def exists_template(arguments={})
|
17
18
|
raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
|
@@ -30,7 +31,10 @@ module Elasticsearch
|
|
30
31
|
# Register this action with its valid params when the module is loaded.
|
31
32
|
#
|
32
33
|
# @since 6.2.0
|
33
|
-
ParamsRegistry.register(:exists_template, [
|
34
|
+
ParamsRegistry.register(:exists_template, [
|
35
|
+
:flat_settings,
|
36
|
+
:master_timeout,
|
37
|
+
:local ].freeze)
|
34
38
|
end
|
35
39
|
end
|
36
40
|
end
|
@@ -7,22 +7,14 @@ module Elasticsearch
|
|
7
7
|
#
|
8
8
|
# client.indices.exists_type? index: 'myindex', type: 'mytype'
|
9
9
|
#
|
10
|
-
# @option arguments [List] :index A comma-separated list of index names; use `_all`
|
11
|
-
# to check the types across all indices (*Required*)
|
10
|
+
# @option arguments [List] :index A comma-separated list of index names; use `_all` to check the types across all indices (*Required*)
|
12
11
|
# @option arguments [List] :type A comma-separated list of document types to check (*Required*)
|
13
|
-
# @option arguments [Boolean] :
|
14
|
-
#
|
15
|
-
#
|
16
|
-
# @option arguments [
|
17
|
-
# are open, closed or both. (options: open, closed)
|
18
|
-
# @option arguments [String] :ignore_indices When performed on multiple indices, allows to ignore
|
19
|
-
# `missing` ones (options: none, missing) @until 1.0
|
20
|
-
# @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when
|
21
|
-
# unavailable (missing, closed, etc)
|
22
|
-
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
|
23
|
-
# (default: false)
|
12
|
+
# @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
13
|
+
# @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
14
|
+
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, none, all)
|
15
|
+
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
|
24
16
|
#
|
25
|
-
# @see
|
17
|
+
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-types-exists.html
|
26
18
|
#
|
27
19
|
def exists_type(arguments={})
|
28
20
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
@@ -43,7 +35,6 @@ module Elasticsearch
|
|
43
35
|
#
|
44
36
|
# @since 6.2.0
|
45
37
|
ParamsRegistry.register(:exists_type, [
|
46
|
-
:ignore_indices,
|
47
38
|
:ignore_unavailable,
|
48
39
|
:allow_no_indices,
|
49
40
|
:expand_wildcards,
|
@@ -11,15 +11,11 @@ module Elasticsearch
|
|
11
11
|
# @note The flush operation is handled automatically by Elasticsearch, you don't need to perform it manually.
|
12
12
|
#
|
13
13
|
# @option arguments [List] :index A comma-separated list of index names; use `_all` or empty string for all indices
|
14
|
-
# @option arguments [Boolean] :force Whether a flush should be forced even if it is not necessarily needed ie.
|
15
|
-
# @option arguments [Boolean] :
|
16
|
-
#
|
17
|
-
#
|
18
|
-
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that
|
19
|
-
# are open, closed or both. (options: open, closed)
|
20
|
-
# @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when
|
21
|
-
# unavailable (missing, closed, etc)
|
22
|
-
# @option arguments [Boolean] :wait_if_ongoing If set to true the flush operation will block until the flush can be executed if another flush operation is already executing. If set to false the flush will be skipped if another flush operation is already running. (Default: true)
|
14
|
+
# @option arguments [Boolean] :force Whether a flush should be forced even if it is not necessarily needed ie. if no changes will be committed to the index. This is useful if transaction log IDs should be incremented even if no uncommitted changes are present. (This setting can be considered as internal)
|
15
|
+
# @option arguments [Boolean] :wait_if_ongoing If set to true the flush operation will block until the flush can be executed if another flush operation is already executing. The default is true. If set to false the flush will be skipped iff if another flush operation is already running.
|
16
|
+
# @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
17
|
+
# @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
18
|
+
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, none, all)
|
23
19
|
#
|
24
20
|
# @see http://www.elasticsearch.org/guide/reference/api/admin-indices-flush/
|
25
21
|
#
|
@@ -8,7 +8,7 @@ module Elasticsearch
|
|
8
8
|
# @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
9
9
|
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, none, all)
|
10
10
|
#
|
11
|
-
# @see http://www.elastic.co/guide/en/elasticsearch/reference/
|
11
|
+
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-synced-flush.html
|
12
12
|
#
|
13
13
|
def flush_synced(arguments={})
|
14
14
|
method = HTTP_POST
|
@@ -30,16 +30,15 @@ module Elasticsearch
|
|
30
30
|
#
|
31
31
|
# client.indices.forcemerge index: '_all'
|
32
32
|
#
|
33
|
-
# @option arguments [List] :index A comma-separated list of
|
34
|
-
#
|
35
|
-
# @option arguments [
|
36
|
-
#
|
37
|
-
# @option arguments [
|
38
|
-
#
|
39
|
-
# @option arguments [Boolean] :
|
40
|
-
# (default: true)
|
33
|
+
# @option arguments [List] :index A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices
|
34
|
+
# @option arguments [Boolean] :flush Specify whether the index should be flushed after performing the operation (default: true)
|
35
|
+
# @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
36
|
+
# @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
37
|
+
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, none, all)
|
38
|
+
# @option arguments [Number] :max_num_segments The number of segments the index should be merged into (default: dynamic)
|
39
|
+
# @option arguments [Boolean] :only_expunge_deletes Specify whether the operation should only expunge deleted documents
|
41
40
|
#
|
42
|
-
# @see http://www.elastic.co/guide/en/elasticsearch/reference/
|
41
|
+
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-forcemerge.html
|
43
42
|
#
|
44
43
|
def forcemerge(arguments={})
|
45
44
|
method = HTTP_POST
|
@@ -55,9 +54,12 @@ module Elasticsearch
|
|
55
54
|
#
|
56
55
|
# @since 6.2.0
|
57
56
|
ParamsRegistry.register(:forcemerge, [
|
57
|
+
:flush,
|
58
|
+
:ignore_unavailable,
|
59
|
+
:allow_no_indices,
|
60
|
+
:expand_wildcards,
|
58
61
|
:max_num_segments,
|
59
|
-
:only_expunge_deletes
|
60
|
-
:flush ].freeze)
|
62
|
+
:only_expunge_deletes ].freeze)
|
61
63
|
end
|
62
64
|
end
|
63
65
|
end
|
@@ -6,22 +6,15 @@ module Elasticsearch
|
|
6
6
|
# Retrieve information about one or more indices
|
7
7
|
#
|
8
8
|
# @option arguments [List] :index A comma-separated list of index names (*Required*)
|
9
|
-
# @option arguments [
|
10
|
-
# (options: _settings, _mappings, _aliases]
|
11
|
-
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
|
12
|
-
# (default: false)
|
9
|
+
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
|
13
10
|
# @option arguments [Boolean] :ignore_unavailable Ignore unavailable indexes (default: false)
|
14
|
-
# @option arguments [Boolean] :allow_no_indices Ignore if a wildcard expression resolves to no concrete
|
15
|
-
#
|
16
|
-
# @option arguments [List] :expand_wildcards Whether wildcard expressions should get expanded
|
17
|
-
# to open or closed indices (default: open)
|
11
|
+
# @option arguments [Boolean] :allow_no_indices Ignore if a wildcard expression resolves to no concrete indices (default: false)
|
12
|
+
# @option arguments [String] :expand_wildcards Whether wildcard expressions should get expanded to open or closed indices (default: open) (options: open, closed, none, all)
|
18
13
|
# @option arguments [Boolean] :flat_settings Return settings in flat format (default: false)
|
19
|
-
# @option arguments [Boolean] :
|
20
|
-
#
|
21
|
-
# @option arguments [Boolean] :include_defaults Whether to return all default setting
|
22
|
-
# for each of the indices (default:false)
|
14
|
+
# @option arguments [Boolean] :include_defaults Whether to return all default setting for each of the indices.
|
15
|
+
# @option arguments [Time] :master_timeout Specify timeout for connection to master
|
23
16
|
#
|
24
|
-
# @see http://www.
|
17
|
+
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-index.html
|
25
18
|
#
|
26
19
|
def get(arguments={})
|
27
20
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
@@ -44,8 +37,9 @@ module Elasticsearch
|
|
44
37
|
:allow_no_indices,
|
45
38
|
:expand_wildcards,
|
46
39
|
:flat_settings,
|
47
|
-
:
|
48
|
-
:
|
40
|
+
:include_defaults,
|
41
|
+
:master_timeout,
|
42
|
+
:include_type_name ].freeze)
|
49
43
|
end
|
50
44
|
end
|
51
45
|
end
|
@@ -15,19 +15,12 @@ module Elasticsearch
|
|
15
15
|
#
|
16
16
|
# @option arguments [List] :index A comma-separated list of index names to filter aliases
|
17
17
|
# @option arguments [List] :name A comma-separated list of alias names to return
|
18
|
-
# @option arguments [Boolean] :
|
19
|
-
#
|
20
|
-
#
|
21
|
-
# @option arguments [
|
22
|
-
#
|
23
|
-
# @
|
24
|
-
# `missing` ones (options: none, missing) @until 1.0
|
25
|
-
# @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when
|
26
|
-
# unavailable (missing, closed, etc)
|
27
|
-
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
|
28
|
-
# (default: false)
|
29
|
-
#
|
30
|
-
# @see http://www.elasticsearch.org/guide/reference/api/admin-indices-aliases/
|
18
|
+
# @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
19
|
+
# @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
20
|
+
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, none, all)
|
21
|
+
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
|
22
|
+
#
|
23
|
+
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html
|
31
24
|
#
|
32
25
|
def get_alias(arguments={})
|
33
26
|
method = HTTP_GET
|
@@ -43,7 +36,6 @@ module Elasticsearch
|
|
43
36
|
#
|
44
37
|
# @since 6.2.0
|
45
38
|
ParamsRegistry.register(:get_alias, [
|
46
|
-
:ignore_indices,
|
47
39
|
:ignore_unavailable,
|
48
40
|
:allow_no_indices,
|
49
41
|
:expand_wildcards,
|
@@ -18,20 +18,15 @@ module Elasticsearch
|
|
18
18
|
# client.indices.get_field_mapping index: 'foo', field: ['bar', 'bam']
|
19
19
|
#
|
20
20
|
# @option arguments [List] :index A comma-separated list of index names
|
21
|
-
# @option arguments [List] :type
|
22
|
-
# @option arguments [List] :
|
23
|
-
# @option arguments [Boolean] :include_defaults Whether default mapping values should be returned as well
|
24
|
-
# @option arguments [Boolean] :
|
25
|
-
#
|
26
|
-
#
|
27
|
-
# @option arguments [
|
28
|
-
# are open, closed or both. (options: open, closed)
|
29
|
-
# @option arguments [String] :ignore_indices When performed on multiple indices, allows to ignore
|
30
|
-
# `missing` ones (options: none, missing) @until 1.0
|
31
|
-
# @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when
|
32
|
-
# unavailable (missing, closed, etc)
|
21
|
+
# @option arguments [List] :type A comma-separated list of document types
|
22
|
+
# @option arguments [List] :fields A comma-separated list of fields (*Required*)
|
23
|
+
# @option arguments [Boolean] :include_defaults Whether the default mapping values should be returned as well
|
24
|
+
# @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
25
|
+
# @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
26
|
+
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, none, all)
|
27
|
+
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
|
33
28
|
#
|
34
|
-
# @see http://www.
|
29
|
+
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-field-mapping.html
|
35
30
|
#
|
36
31
|
def get_field_mapping(arguments={})
|
37
32
|
arguments = arguments.clone
|
@@ -56,10 +51,11 @@ module Elasticsearch
|
|
56
51
|
# @since 6.2.0
|
57
52
|
ParamsRegistry.register(:get_field_mapping, [
|
58
53
|
:include_defaults,
|
59
|
-
:ignore_indices,
|
60
54
|
:ignore_unavailable,
|
61
55
|
:allow_no_indices,
|
62
|
-
:expand_wildcards
|
56
|
+
:expand_wildcards,
|
57
|
+
:local,
|
58
|
+
:include_type_name ].freeze)
|
63
59
|
end
|
64
60
|
end
|
65
61
|
end
|
@@ -17,21 +17,16 @@ module Elasticsearch
|
|
17
17
|
#
|
18
18
|
# client.indices.get_mapping index: 'foo', type: 'baz'
|
19
19
|
#
|
20
|
-
#
|
20
|
+
#
|
21
|
+
# @option arguments [List] :index A comma-separated list of index names
|
21
22
|
# @option arguments [List] :type A comma-separated list of document types
|
22
|
-
# @option arguments [Boolean] :
|
23
|
-
#
|
24
|
-
#
|
25
|
-
# @option arguments [
|
26
|
-
#
|
27
|
-
#
|
28
|
-
#
|
29
|
-
# @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when
|
30
|
-
# unavailable (missing, closed, etc)
|
31
|
-
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
|
32
|
-
# (default: false)
|
33
|
-
#
|
34
|
-
# @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-get-mapping.html
|
23
|
+
# @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
24
|
+
# @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
|
25
|
+
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, none, all)
|
26
|
+
# @option arguments [Time] :master_timeout Specify timeout for connection to master
|
27
|
+
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
|
28
|
+
#
|
29
|
+
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-mapping.html
|
35
30
|
#
|
36
31
|
def get_mapping(arguments={})
|
37
32
|
method = HTTP_GET
|
@@ -48,11 +43,12 @@ module Elasticsearch
|
|
48
43
|
#
|
49
44
|
# @since 6.2.0
|
50
45
|
ParamsRegistry.register(:get_mapping, [
|
51
|
-
:ignore_indices,
|
52
46
|
:ignore_unavailable,
|
53
47
|
:allow_no_indices,
|
54
48
|
:expand_wildcards,
|
55
|
-
:
|
49
|
+
:master_timeout,
|
50
|
+
:local,
|
51
|
+
:include_type_name ].freeze)
|
56
52
|
end
|
57
53
|
end
|
58
54
|
end
|