elasticsearch-api 1.0.17 → 1.0.18
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/Rakefile +2 -1
- data/elasticsearch-api.gemspec +6 -1
- data/lib/elasticsearch/api.rb +1 -0
- data/lib/elasticsearch/api/actions/bulk.rb +3 -1
- data/lib/elasticsearch/api/actions/cat/plugins.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/tasks.rb +41 -0
- data/lib/elasticsearch/api/actions/cat/thread_pool.rb +3 -0
- data/lib/elasticsearch/api/actions/cluster/allocation_explain.rb +26 -0
- data/lib/elasticsearch/api/actions/cluster/get_settings.rb +4 -1
- data/lib/elasticsearch/api/actions/cluster/health.rb +4 -1
- data/lib/elasticsearch/api/actions/cluster/pending_tasks.rb +1 -1
- data/lib/elasticsearch/api/actions/cluster/reroute.rb +3 -1
- data/lib/elasticsearch/api/actions/cluster/stats.rb +30 -0
- data/lib/elasticsearch/api/actions/index.rb +1 -0
- data/lib/elasticsearch/api/actions/indices/analyze.rb +5 -0
- data/lib/elasticsearch/api/actions/indices/close.rb +2 -1
- data/lib/elasticsearch/api/actions/indices/create.rb +8 -1
- data/lib/elasticsearch/api/actions/indices/flush_synced.rb +5 -1
- data/lib/elasticsearch/api/actions/indices/get.rb +10 -1
- data/lib/elasticsearch/api/actions/indices/get_settings.rb +2 -0
- data/lib/elasticsearch/api/actions/indices/open.rb +2 -1
- data/lib/elasticsearch/api/actions/indices/put_mapping.rb +4 -1
- data/lib/elasticsearch/api/actions/indices/put_settings.rb +6 -0
- data/lib/elasticsearch/api/actions/indices/segments.rb +8 -6
- data/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb +29 -0
- data/lib/elasticsearch/api/actions/ingest/get_pipeline.rb +27 -0
- data/lib/elasticsearch/api/actions/ingest/put_pipeline.rb +32 -0
- data/lib/elasticsearch/api/actions/ingest/simulate.rb +29 -0
- data/lib/elasticsearch/api/actions/nodes/hot_threads.rb +3 -1
- data/lib/elasticsearch/api/actions/nodes/info.rb +4 -2
- data/lib/elasticsearch/api/actions/nodes/stats.rb +3 -1
- data/lib/elasticsearch/api/actions/ping.rb +7 -1
- data/lib/elasticsearch/api/actions/reindex.rb +69 -0
- data/lib/elasticsearch/api/actions/search.rb +5 -0
- data/lib/elasticsearch/api/actions/tasks/list.rb +3 -0
- data/lib/elasticsearch/api/actions/update_by_query.rb +128 -0
- data/lib/elasticsearch/api/namespace/ingest.rb +20 -0
- data/lib/elasticsearch/api/utils.rb +55 -0
- data/lib/elasticsearch/api/version.rb +1 -1
- data/test/integration/yaml_test_runner.rb +3 -3
- data/test/unit/cat/plugins_test.rb +1 -1
- data/test/unit/cat/tasks_test.rb +26 -0
- data/test/unit/cluster/allocation_explain_test.rb +26 -0
- data/test/unit/cluster/health_test.rb +9 -0
- data/test/unit/cluster/pending_tasks_test.rb +1 -1
- data/test/unit/cluster/stats_test.rb +26 -0
- data/test/unit/ingest/delete_pipeline_test.rb +41 -0
- data/test/unit/ingest/get_pipeline_test.rb +41 -0
- data/test/unit/ingest/put_pipeline_test.rb +46 -0
- data/test/unit/ingest/simulate_test.rb +35 -0
- data/test/unit/ping_test.rb +6 -1
- data/test/unit/reindex_test.rb +26 -0
- data/test/unit/update_by_query_test.rb +26 -0
- data/test/unit/utils_test.rb +59 -0
- metadata +34 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ccbe9ec4450fdf833e93e1c85ac3bd2594959d72
|
4
|
+
data.tar.gz: 10ad273b15eddba62c7ae9f29bd8f60fdf277937
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32833fc2c378b8c7eea938fab37fb277a815c9b3427d52e13e12df1bfa6dad4a1b1e446c3406ab8c8eb4bbc4e88fae2857e3f024008b6196916935fd8040e423
|
7
|
+
data.tar.gz: 77ae9c0a0688da4c609aa0df47cd4a33d743b2ab643e3d6bb67b5b0b1e4cea2a14e218778dd24a8ef3b87710c51a405cef3832520ceee5ad328a903a7f76bcf1
|
data/Rakefile
CHANGED
@@ -67,7 +67,8 @@ namespace :test do
|
|
67
67
|
|
68
68
|
# Check if a test cluster is running
|
69
69
|
begin
|
70
|
-
|
70
|
+
url = ENV.fetch('TEST_CLUSTER_URL', "http://localhost:#{ENV['TEST_CLUSTER_PORT'] || 9250}")
|
71
|
+
client = Elasticsearch::Client.new :url => url
|
71
72
|
es_version_info = client.info['version']
|
72
73
|
build_hash = es_version_info['build_hash']
|
73
74
|
cluster_running = true
|
data/elasticsearch-api.gemspec
CHANGED
@@ -23,7 +23,12 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.add_dependency "multi_json"
|
24
24
|
|
25
25
|
s.add_development_dependency "bundler", "> 1"
|
26
|
-
|
26
|
+
|
27
|
+
if defined?(RUBY_VERSION) && RUBY_VERSION > '1.9'
|
28
|
+
s.add_development_dependency "rake", "~> 11.1"
|
29
|
+
else
|
30
|
+
s.add_development_dependency "rake", "< 11.0"
|
31
|
+
end
|
27
32
|
|
28
33
|
s.add_development_dependency "elasticsearch"
|
29
34
|
s.add_development_dependency "elasticsearch-transport"
|
data/lib/elasticsearch/api.rb
CHANGED
@@ -55,6 +55,7 @@ module Elasticsearch
|
|
55
55
|
# @option arguments [Time] :timeout Explicit operation timeout
|
56
56
|
# @option arguments [String] :fields Default comma-separated list of fields to return
|
57
57
|
# in the response for updates
|
58
|
+
# @options arguments [String] :pipeline The pipeline ID to use for preprocessing incoming documents
|
58
59
|
#
|
59
60
|
# @return [Hash] Deserialized Elasticsearch response
|
60
61
|
#
|
@@ -71,7 +72,8 @@ module Elasticsearch
|
|
71
72
|
:replication,
|
72
73
|
:type,
|
73
74
|
:timeout,
|
74
|
-
:fields
|
75
|
+
:fields,
|
76
|
+
:pipeline ]
|
75
77
|
|
76
78
|
method = HTTP_POST
|
77
79
|
path = Utils.__pathify Utils.__escape(arguments[:index]), Utils.__escape(type), '_bulk'
|
@@ -0,0 +1,41 @@
|
|
1
|
+
module Elasticsearch
|
2
|
+
module API
|
3
|
+
module Cat
|
4
|
+
module Actions
|
5
|
+
|
6
|
+
# Return currently running tasks
|
7
|
+
#
|
8
|
+
# @option arguments [String] :format a short version of the Accept header, e.g. json, yaml
|
9
|
+
# @option arguments [List] :node_id A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes
|
10
|
+
# @option arguments [List] :actions A comma-separated list of actions that should be returned. Leave empty to return all.
|
11
|
+
# @option arguments [Boolean] :detailed Return detailed task information (default: false)
|
12
|
+
# @option arguments [String] :parent_node Return tasks with specified parent node.
|
13
|
+
# @option arguments [Number] :parent_task Return tasks with specified parent task id. Set to -1 to return all.
|
14
|
+
# @option arguments [List] :h Comma-separated list of column names to display
|
15
|
+
# @option arguments [Boolean] :help Return help information
|
16
|
+
# @option arguments [Boolean] :v Verbose mode. Display column headers
|
17
|
+
#
|
18
|
+
# @see http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html
|
19
|
+
#
|
20
|
+
def tasks(arguments={})
|
21
|
+
valid_params = [
|
22
|
+
:format,
|
23
|
+
:node_id,
|
24
|
+
:actions,
|
25
|
+
:detailed,
|
26
|
+
:parent_node,
|
27
|
+
:parent_task,
|
28
|
+
:h,
|
29
|
+
:help,
|
30
|
+
:v ]
|
31
|
+
method = 'GET'
|
32
|
+
path = "_cat/tasks"
|
33
|
+
params = Utils.__validate_and_extract_params arguments, valid_params
|
34
|
+
body = nil
|
35
|
+
|
36
|
+
perform_request(method, path, params, body).body
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -23,6 +23,8 @@ module Elasticsearch
|
|
23
23
|
# puts client.cat.thread_pool h: 'host,ia,is,iq,ir,sa,ss,sq,sr', v: true
|
24
24
|
#
|
25
25
|
# @option arguments [Boolean] :full_id Display the complete node ID
|
26
|
+
# @option arguments [String] :size The multiplier in which to display values
|
27
|
+
# (Options: k, m, g, t, p)
|
26
28
|
# @option arguments [List] :h Comma-separated list of column names to display -- see the `help` argument
|
27
29
|
# @option arguments [Boolean] :v Display column headers as part of the output
|
28
30
|
# @option arguments [String] :format The output format. Options: 'text', 'json'; default: 'text'
|
@@ -36,6 +38,7 @@ module Elasticsearch
|
|
36
38
|
def thread_pool(arguments={})
|
37
39
|
valid_params = [
|
38
40
|
:full_id,
|
41
|
+
:size,
|
39
42
|
:local,
|
40
43
|
:master_timeout,
|
41
44
|
:h,
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module Elasticsearch
|
2
|
+
module API
|
3
|
+
module Cluster
|
4
|
+
module Actions
|
5
|
+
|
6
|
+
# Return the information about why a shard is or isn't allocated
|
7
|
+
#
|
8
|
+
# @option arguments [Hash] :body The index, shard, and primary flag to explain. Empty means 'explain the first unassigned shard'
|
9
|
+
# @option arguments [Boolean] :include_yes_decisions Return 'YES' decisions in explanation (default: false)
|
10
|
+
#
|
11
|
+
# @see http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html
|
12
|
+
#
|
13
|
+
def allocation_explain(arguments={})
|
14
|
+
valid_params = [
|
15
|
+
:include_yes_decisions ]
|
16
|
+
method = 'GET'
|
17
|
+
path = "_cluster/allocation/explain"
|
18
|
+
params = Utils.__validate_and_extract_params arguments, valid_params
|
19
|
+
body = arguments[:body]
|
20
|
+
|
21
|
+
perform_request(method, path, params, body).body
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -10,12 +10,15 @@ module Elasticsearch
|
|
10
10
|
# client.cluster.get_settings
|
11
11
|
#
|
12
12
|
# @option arguments [Boolean] :flat_settings Return settings in flat format (default: false)
|
13
|
+
# @option arguments [Boolean] :include_defaults Whether to return all default clusters setting
|
14
|
+
# (default: false)
|
13
15
|
#
|
14
16
|
# @see http://elasticsearch.org/guide/reference/api/admin-cluster-update-settings/
|
15
17
|
#
|
16
18
|
def get_settings(arguments={})
|
17
19
|
valid_params = [
|
18
|
-
:flat_settings
|
20
|
+
:flat_settings,
|
21
|
+
:include_defaults
|
19
22
|
]
|
20
23
|
|
21
24
|
method = HTTP_GET
|
@@ -30,6 +30,9 @@ module Elasticsearch
|
|
30
30
|
# @see http://elasticsearch.org/guide/reference/api/admin-cluster-health/
|
31
31
|
#
|
32
32
|
def health(arguments={})
|
33
|
+
arguments = arguments.clone
|
34
|
+
index = arguments.delete(:index)
|
35
|
+
|
33
36
|
valid_params = [
|
34
37
|
:level,
|
35
38
|
:local,
|
@@ -41,7 +44,7 @@ module Elasticsearch
|
|
41
44
|
:wait_for_status ]
|
42
45
|
|
43
46
|
method = HTTP_GET
|
44
|
-
path = "_cluster/health"
|
47
|
+
path = Utils.__pathify "_cluster/health", Utils.__listify(index)
|
45
48
|
|
46
49
|
params = Utils.__validate_and_extract_params arguments, valid_params
|
47
50
|
body = nil
|
@@ -26,11 +26,13 @@ module Elasticsearch
|
|
26
26
|
# Defaults to all but metadata. (Options: _all, blocks, metadata,
|
27
27
|
# nodes, routing_table, master_node, version)
|
28
28
|
# @option arguments [Time] :master_timeout Specify timeout for connection to master
|
29
|
+
# @option arguments [Boolean] :retry_failed Retries allocation of shards that are blocked due to too many
|
30
|
+
# subsequent allocation failures
|
29
31
|
#
|
30
32
|
# @see http://elasticsearch.org/guide/reference/api/admin-cluster-reroute/
|
31
33
|
#
|
32
34
|
def reroute(arguments={})
|
33
|
-
valid_params = [ :dry_run, :explain, :metric, :master_timeout, :timeout ]
|
35
|
+
valid_params = [ :dry_run, :explain, :metric, :master_timeout, :retry_failed, :timeout ]
|
34
36
|
|
35
37
|
method = HTTP_POST
|
36
38
|
path = "_cluster/reroute"
|
@@ -0,0 +1,30 @@
|
|
1
|
+
module Elasticsearch
|
2
|
+
module API
|
3
|
+
module Cluster
|
4
|
+
module Actions
|
5
|
+
|
6
|
+
# Returns statistical information about the cluster
|
7
|
+
#
|
8
|
+
# @option arguments [List] :node_id A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes
|
9
|
+
# @option arguments [Boolean] :flat_settings Return settings in flat format (default: false)
|
10
|
+
# @option arguments [Boolean] :human Whether to return time and byte values in human-readable format.
|
11
|
+
# @option arguments [Time] :timeout Explicit operation timeout
|
12
|
+
#
|
13
|
+
# @see http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-stats.html
|
14
|
+
#
|
15
|
+
def stats(arguments={})
|
16
|
+
valid_params = [
|
17
|
+
:flat_settings,
|
18
|
+
:human,
|
19
|
+
:timeout ]
|
20
|
+
method = 'GET'
|
21
|
+
path = "_cluster/stats"
|
22
|
+
params = Utils.__validate_and_extract_params arguments, valid_params
|
23
|
+
body = nil
|
24
|
+
|
25
|
+
perform_request(method, path, params, body).body
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -36,6 +36,8 @@ module Elasticsearch
|
|
36
36
|
# @option arguments [List] :filters A comma-separated list of token filters to use for the analysis.
|
37
37
|
# (Also available as the `:token_filters` option)
|
38
38
|
# @option arguments [List] :char_filters A comma-separated list of char filters to use for the analysis
|
39
|
+
# @option arguments [Boolean] :explain Whether to output further details (default: false)
|
40
|
+
# @option arguments [List] :attributes A comma-separated list of token attributes to output (use with `:explain`)
|
39
41
|
# @option arguments [String] :index The name of the index to scope the operation
|
40
42
|
# @option arguments [Boolean] :prefer_local With `true`, specify that a local shard should be used if available,
|
41
43
|
# with `false`, use a random shard (default: true)
|
@@ -50,8 +52,11 @@ module Elasticsearch
|
|
50
52
|
valid_params = [
|
51
53
|
:analyzer,
|
52
54
|
:char_filters,
|
55
|
+
:explain,
|
56
|
+
:attributes,
|
53
57
|
:field,
|
54
58
|
:filters,
|
59
|
+
:filter,
|
55
60
|
:index,
|
56
61
|
:prefer_local,
|
57
62
|
:text,
|
@@ -11,7 +11,8 @@ module Elasticsearch
|
|
11
11
|
#
|
12
12
|
# client.indices.close index: 'myindex'
|
13
13
|
#
|
14
|
-
# @option arguments [
|
14
|
+
# @option arguments [List] :index A comma separated list of indices to perform the operation on
|
15
|
+
# (*Required*)
|
15
16
|
# @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into
|
16
17
|
# no concrete indices. (This includes `_all` string or when no
|
17
18
|
# indices have been specified)
|
@@ -60,13 +60,20 @@ module Elasticsearch
|
|
60
60
|
#
|
61
61
|
# @option arguments [String] :index The name of the index (*Required*)
|
62
62
|
# @option arguments [Hash] :body Optional configuration for the index (`settings` and `mappings`)
|
63
|
+
# @option arguments [Boolean] :update_all_types Whether to update the mapping for all fields
|
64
|
+
# with the same name across all types
|
63
65
|
# @option arguments [Time] :timeout Explicit operation timeout
|
66
|
+
# @option arguments [Boolean] :master_timeout Timeout for connection to master
|
64
67
|
#
|
65
68
|
# @see http://www.elasticsearch.org/guide/reference/api/admin-indices-create-index/
|
66
69
|
#
|
67
70
|
def create(arguments={})
|
68
71
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
69
|
-
valid_params = [
|
72
|
+
valid_params = [
|
73
|
+
:timeout,
|
74
|
+
:master_timeout,
|
75
|
+
:update_all_types
|
76
|
+
]
|
70
77
|
|
71
78
|
method = HTTP_PUT
|
72
79
|
path = Utils.__pathify Utils.__escape(arguments[:index])
|
@@ -12,7 +12,11 @@ module Elasticsearch
|
|
12
12
|
#
|
13
13
|
def flush_synced(arguments={})
|
14
14
|
valid_params = [
|
15
|
-
|
15
|
+
:ignore_unavailable,
|
16
|
+
:allow_no_indices,
|
17
|
+
:expand_wildcards
|
18
|
+
]
|
19
|
+
|
16
20
|
method = HTTP_POST
|
17
21
|
path = Utils.__pathify Utils.__listify(arguments[:index]), '_flush/synced'
|
18
22
|
|
@@ -7,6 +7,7 @@ module Elasticsearch
|
|
7
7
|
#
|
8
8
|
# @option arguments [List] :index A comma-separated list of index names (*Required*)
|
9
9
|
# @option arguments [List] :feature A comma-separated list of features
|
10
|
+
# (options: _settings, _mappings, _aliases]
|
10
11
|
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
|
11
12
|
# (default: false)
|
12
13
|
# @option arguments [Boolean] :ignore_unavailable Ignore unavailable indexes (default: false)
|
@@ -14,6 +15,11 @@ module Elasticsearch
|
|
14
15
|
# indices (default: false)
|
15
16
|
# @option arguments [List] :expand_wildcards Whether wildcard expressions should get expanded
|
16
17
|
# to open or closed indices (default: open)
|
18
|
+
# @option arguments [Boolean] :flat_settings Return settings in flat format (default: false)
|
19
|
+
# @option arguments [Boolean] :human Whether to return version and creation date values in
|
20
|
+
# human-readable format (default: false)
|
21
|
+
# @option arguments [Boolean] :include_defaults Whether to return all default setting
|
22
|
+
# for each of the indices (default:false)
|
17
23
|
#
|
18
24
|
# @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/indices-get-index.html
|
19
25
|
#
|
@@ -24,7 +30,10 @@ module Elasticsearch
|
|
24
30
|
:local,
|
25
31
|
:ignore_unavailable,
|
26
32
|
:allow_no_indices,
|
27
|
-
:expand_wildcards
|
33
|
+
:expand_wildcards,
|
34
|
+
:flat_settings,
|
35
|
+
:human,
|
36
|
+
:include_defaults ]
|
28
37
|
|
29
38
|
method = HTTP_GET
|
30
39
|
|
@@ -34,6 +34,7 @@ module Elasticsearch
|
|
34
34
|
# `missing` ones (options: none, missing) @until 1.0
|
35
35
|
# @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when
|
36
36
|
# unavailable (missing, closed, etc)
|
37
|
+
# @option arguments [Boolean] :include_defaults Whether to return all default clusters setting
|
37
38
|
# @option arguments [Boolean] :flat_settings Return settings in flat format (default: false)
|
38
39
|
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
|
39
40
|
# (default: false)
|
@@ -45,6 +46,7 @@ module Elasticsearch
|
|
45
46
|
:prefix,
|
46
47
|
:ignore_indices,
|
47
48
|
:ignore_unavailable,
|
49
|
+
:include_defaults,
|
48
50
|
:allow_no_indices,
|
49
51
|
:expand_wildcards,
|
50
52
|
:flat_settings,
|
@@ -9,7 +9,8 @@ module Elasticsearch
|
|
9
9
|
#
|
10
10
|
# client.indices.open index: 'myindex'
|
11
11
|
#
|
12
|
-
# @option arguments [
|
12
|
+
# @option arguments [List] :index A comma separated list of indices to perform the operation on
|
13
|
+
# (*Required*)
|
13
14
|
# @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into
|
14
15
|
# no concrete indices. (This includes `_all` string or when no
|
15
16
|
# indices have been specified)
|
@@ -40,8 +40,10 @@ module Elasticsearch
|
|
40
40
|
# `missing` ones (options: none, missing) @until 1.0
|
41
41
|
# @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when
|
42
42
|
# unavailable (missing, closed, etc)
|
43
|
-
# @option arguments [
|
43
|
+
# @option arguments [Boolean] :update_all_types Whether to update the mapping for all fields
|
44
|
+
# with the same name across all types
|
44
45
|
# @option arguments [Time] :timeout Explicit operation timeout
|
46
|
+
# @option arguments [Boolean] :master_timeout Timeout for connection to master
|
45
47
|
#
|
46
48
|
# @see http://www.elasticsearch.org/guide/reference/api/admin-indices-put-mapping/
|
47
49
|
#
|
@@ -55,6 +57,7 @@ module Elasticsearch
|
|
55
57
|
:ignore_unavailable,
|
56
58
|
:allow_no_indices,
|
57
59
|
:expand_wildcards,
|
60
|
+
:update_all_types,
|
58
61
|
:master_timeout,
|
59
62
|
:timeout
|
60
63
|
]
|
@@ -36,6 +36,10 @@ module Elasticsearch
|
|
36
36
|
# `missing` ones (options: none, missing) @until 1.0
|
37
37
|
# @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when
|
38
38
|
# unavailable (missing, closed, etc)
|
39
|
+
# @option arguments [Boolean] :include_defaults Whether to return all default clusters setting
|
40
|
+
# @option arguments [Boolean] :preserve_existing Whether to update existing settings.
|
41
|
+
# If set to `true` existing settings on an index remain
|
42
|
+
# unchanged, the default is `false`
|
39
43
|
# @option arguments [Time] :master_timeout Specify timeout for connection to master
|
40
44
|
# @option arguments [Boolean] :flat_settings Return settings in flat format (default: false)
|
41
45
|
#
|
@@ -47,8 +51,10 @@ module Elasticsearch
|
|
47
51
|
valid_params = [
|
48
52
|
:ignore_indices,
|
49
53
|
:ignore_unavailable,
|
54
|
+
:include_defaults,
|
50
55
|
:allow_no_indices,
|
51
56
|
:expand_wildcards,
|
57
|
+
:preserve_existing,
|
52
58
|
:master_timeout,
|
53
59
|
:flat_settings
|
54
60
|
]
|
@@ -10,15 +10,16 @@ module Elasticsearch
|
|
10
10
|
#
|
11
11
|
# @option arguments [List] :index A comma-separated list of index names; use `_all` or empty string
|
12
12
|
# to perform the operation on all indices
|
13
|
-
# @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression
|
14
|
-
# no concrete indices. (This includes `_all`
|
15
|
-
# indices have been specified)
|
16
|
-
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices
|
17
|
-
# are open, closed or both. (options: open, closed)
|
13
|
+
# @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression
|
14
|
+
# resolves into no concrete indices. (This includes `_all`
|
15
|
+
# string or when no indices have been specified)
|
16
|
+
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices
|
17
|
+
# that are open, closed or both. (options: open, closed)
|
18
18
|
# @option arguments [String] :ignore_indices When performed on multiple indices, allows to ignore
|
19
19
|
# `missing` ones (options: none, missing) @until 1.0
|
20
20
|
# @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when
|
21
21
|
# unavailable (missing, closed, etc)
|
22
|
+
# @option arguments [Boolean] :verbose Whether to include detailed memory usage by Lucene (default: false)
|
22
23
|
#
|
23
24
|
# @see http://elasticsearch.org/guide/reference/api/admin-indices-segments/
|
24
25
|
#
|
@@ -27,7 +28,8 @@ module Elasticsearch
|
|
27
28
|
:ignore_indices,
|
28
29
|
:ignore_unavailable,
|
29
30
|
:allow_no_indices,
|
30
|
-
:expand_wildcards
|
31
|
+
:expand_wildcards,
|
32
|
+
:verbose
|
31
33
|
]
|
32
34
|
|
33
35
|
method = HTTP_GET
|