elasticsearch-api 1.0.18 → 1.1.pre
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/bulk.rb +4 -1
- data/lib/elasticsearch/api/actions/cat/aliases.rb +3 -0
- data/lib/elasticsearch/api/actions/cat/allocation.rb +3 -0
- data/lib/elasticsearch/api/actions/cat/count.rb +3 -0
- data/lib/elasticsearch/api/actions/cat/fielddata.rb +3 -0
- data/lib/elasticsearch/api/actions/cat/health.rb +3 -0
- data/lib/elasticsearch/api/actions/cat/indices.rb +3 -0
- data/lib/elasticsearch/api/actions/cat/master.rb +3 -0
- data/lib/elasticsearch/api/actions/cat/nodeattrs.rb +3 -0
- data/lib/elasticsearch/api/actions/cat/nodes.rb +3 -0
- data/lib/elasticsearch/api/actions/cat/pending_tasks.rb +3 -0
- data/lib/elasticsearch/api/actions/cat/plugins.rb +4 -0
- data/lib/elasticsearch/api/actions/cat/recovery.rb +3 -0
- data/lib/elasticsearch/api/actions/cat/repositories.rb +2 -0
- data/lib/elasticsearch/api/actions/cat/segments.rb +4 -0
- data/lib/elasticsearch/api/actions/cat/shards.rb +3 -0
- data/lib/elasticsearch/api/actions/cat/snapshots.rb +2 -0
- data/lib/elasticsearch/api/actions/cat/tasks.rb +2 -0
- data/lib/elasticsearch/api/actions/cat/thread_pool.rb +3 -0
- data/lib/elasticsearch/api/actions/cluster/allocation_explain.rb +2 -0
- data/lib/elasticsearch/api/actions/cluster/get_settings.rb +3 -0
- data/lib/elasticsearch/api/actions/cluster/reroute.rb +3 -0
- data/lib/elasticsearch/api/actions/index.rb +3 -0
- data/lib/elasticsearch/api/actions/indices/analyze.rb +3 -0
- data/lib/elasticsearch/api/actions/indices/create.rb +3 -0
- data/lib/elasticsearch/api/actions/indices/forcemerge.rb +2 -0
- data/lib/elasticsearch/api/actions/indices/put_mapping.rb +3 -0
- data/lib/elasticsearch/api/actions/indices/put_settings.rb +3 -0
- data/lib/elasticsearch/api/actions/indices/segments.rb +3 -0
- data/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb +2 -0
- data/lib/elasticsearch/api/actions/ingest/get_pipeline.rb +2 -0
- data/lib/elasticsearch/api/actions/ingest/put_pipeline.rb +2 -0
- data/lib/elasticsearch/api/actions/ingest/simulate.rb +2 -0
- data/lib/elasticsearch/api/actions/nodes/hot_threads.rb +3 -0
- data/lib/elasticsearch/api/actions/nodes/info.rb +4 -2
- data/lib/elasticsearch/api/actions/nodes/stats.rb +3 -0
- data/lib/elasticsearch/api/actions/percolate.rb +3 -0
- data/lib/elasticsearch/api/actions/reindex.rb +4 -1
- data/lib/elasticsearch/api/actions/render_search_template.rb +5 -4
- data/lib/elasticsearch/api/actions/search.rb +3 -0
- data/lib/elasticsearch/api/actions/tasks/cancel.rb +3 -2
- data/lib/elasticsearch/api/actions/tasks/list.rb +3 -2
- data/lib/elasticsearch/api/actions/termvectors.rb +2 -0
- data/lib/elasticsearch/api/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4748f47a20f83f1ceb2feb255f59373ba98842a
|
4
|
+
data.tar.gz: d9a62b32224975bb34728778d972b0d1c5d9fb04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5d0c06aabf62da89445f1176375f5bb59b63dd317ca5fbfe738711767b491360bed634940492da6ec62df5f2dde6dc7270747b4fddeffba59cb8dcc4440d287
|
7
|
+
data.tar.gz: 40e8a7f9913617a517a163565464a788cff108bebb10e546506601022480c6da48859319fcb643e1c734ef5698d21cb36fe4ca439de1a56001ce0715717d5f19
|
@@ -64,7 +64,7 @@ module Elasticsearch
|
|
64
64
|
def bulk(arguments={})
|
65
65
|
arguments = arguments.clone
|
66
66
|
|
67
|
-
type
|
67
|
+
type = arguments.delete(:type)
|
68
68
|
|
69
69
|
valid_params = [
|
70
70
|
:consistency,
|
@@ -75,6 +75,9 @@ module Elasticsearch
|
|
75
75
|
:fields,
|
76
76
|
:pipeline ]
|
77
77
|
|
78
|
+
unsupported_params = [ :fields, :pipeline ]
|
79
|
+
Utils.__report_unsupported_parameters(arguments, unsupported_params)
|
80
|
+
|
78
81
|
method = HTTP_POST
|
79
82
|
path = Utils.__pathify Utils.__escape(arguments[:index]), Utils.__escape(type), '_bulk'
|
80
83
|
|
@@ -37,6 +37,9 @@ module Elasticsearch
|
|
37
37
|
:ts,
|
38
38
|
:v ]
|
39
39
|
|
40
|
+
unsupported_params = [ :format ]
|
41
|
+
Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
|
42
|
+
|
40
43
|
method = HTTP_GET
|
41
44
|
path = "_cat/health"
|
42
45
|
params = Utils.__validate_and_extract_params arguments, valid_params
|
@@ -35,6 +35,9 @@ module Elasticsearch
|
|
35
35
|
:help,
|
36
36
|
:v ]
|
37
37
|
|
38
|
+
unsupported_params = [ :format ]
|
39
|
+
Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
|
40
|
+
|
38
41
|
method = HTTP_GET
|
39
42
|
path = "_cat/master"
|
40
43
|
params = Utils.__validate_and_extract_params arguments, valid_params
|
@@ -14,12 +14,15 @@ module Elasticsearch
|
|
14
14
|
# @see http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodeattrs.html
|
15
15
|
#
|
16
16
|
def nodeattrs(arguments={})
|
17
|
+
Utils.__report_unsupported_method(__method__)
|
18
|
+
|
17
19
|
valid_params = [
|
18
20
|
:local,
|
19
21
|
:master_timeout,
|
20
22
|
:h,
|
21
23
|
:help,
|
22
24
|
:v ]
|
25
|
+
|
23
26
|
method = 'GET'
|
24
27
|
path = "_cat/nodeattrs"
|
25
28
|
params = Utils.__validate_and_extract_params arguments, valid_params
|
@@ -35,6 +35,9 @@ module Elasticsearch
|
|
35
35
|
:help,
|
36
36
|
:v ]
|
37
37
|
|
38
|
+
unsupported_params = [ :format ]
|
39
|
+
Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
|
40
|
+
|
38
41
|
method = HTTP_GET
|
39
42
|
path = "_cat/pending_tasks"
|
40
43
|
params = Utils.__validate_and_extract_params arguments, valid_params
|
@@ -21,6 +21,10 @@ module Elasticsearch
|
|
21
21
|
:h,
|
22
22
|
:help,
|
23
23
|
:v ]
|
24
|
+
|
25
|
+
unsupported_params = [ :format ]
|
26
|
+
Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
|
27
|
+
|
24
28
|
method = 'GET'
|
25
29
|
path = "_cat/plugins"
|
26
30
|
params = Utils.__validate_and_extract_params arguments, valid_params
|
@@ -23,6 +23,10 @@ module Elasticsearch
|
|
23
23
|
:h,
|
24
24
|
:help,
|
25
25
|
:v ]
|
26
|
+
|
27
|
+
unsupported_params = [ :format ]
|
28
|
+
Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
|
29
|
+
|
26
30
|
method = 'GET'
|
27
31
|
path = "_cat/segments"
|
28
32
|
params = Utils.__validate_and_extract_params arguments, valid_params
|
@@ -21,6 +21,8 @@ module Elasticsearch
|
|
21
21
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-snapshots.html
|
22
22
|
#
|
23
23
|
def snapshots(arguments={})
|
24
|
+
Utils.__report_unsupported_method(__method__)
|
25
|
+
|
24
26
|
raise ArgumentError, "Required argument 'repository' missing" unless arguments[:repository]
|
25
27
|
|
26
28
|
valid_params = [
|
@@ -45,6 +45,9 @@ module Elasticsearch
|
|
45
45
|
:help,
|
46
46
|
:v ]
|
47
47
|
|
48
|
+
unsupported_params = [ :format, :size ]
|
49
|
+
Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
|
50
|
+
|
48
51
|
method = HTTP_GET
|
49
52
|
path = "_cat/thread_pool"
|
50
53
|
params = Utils.__validate_and_extract_params arguments, valid_params
|
@@ -11,6 +11,8 @@ module Elasticsearch
|
|
11
11
|
# @see http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html
|
12
12
|
#
|
13
13
|
def allocation_explain(arguments={})
|
14
|
+
Utils.__report_unsupported_method(__method__)
|
15
|
+
|
14
16
|
valid_params = [
|
15
17
|
:include_yes_decisions ]
|
16
18
|
method = 'GET'
|
@@ -21,6 +21,9 @@ module Elasticsearch
|
|
21
21
|
:include_defaults
|
22
22
|
]
|
23
23
|
|
24
|
+
unsupported_params = [ :include_defaults ]
|
25
|
+
Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
|
26
|
+
|
24
27
|
method = HTTP_GET
|
25
28
|
path = "_cluster/settings"
|
26
29
|
params = Utils.__validate_and_extract_params arguments, valid_params
|
@@ -34,6 +34,9 @@ module Elasticsearch
|
|
34
34
|
def reroute(arguments={})
|
35
35
|
valid_params = [ :dry_run, :explain, :metric, :master_timeout, :retry_failed, :timeout ]
|
36
36
|
|
37
|
+
unsupported_params = [ :retry_failed ]
|
38
|
+
Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
|
39
|
+
|
37
40
|
method = HTTP_POST
|
38
41
|
path = "_cluster/reroute"
|
39
42
|
|
@@ -89,6 +89,9 @@ module Elasticsearch
|
|
89
89
|
:version,
|
90
90
|
:version_type ]
|
91
91
|
|
92
|
+
unsupported_params = [ :pipeline ]
|
93
|
+
Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
|
94
|
+
|
92
95
|
method = arguments[:id] ? HTTP_PUT : HTTP_POST
|
93
96
|
path = Utils.__pathify Utils.__escape(arguments[:index]),
|
94
97
|
Utils.__escape(arguments[:type]),
|
@@ -64,6 +64,9 @@ module Elasticsearch
|
|
64
64
|
:token_filters,
|
65
65
|
:format ]
|
66
66
|
|
67
|
+
unsupported_params = [ :explain, :attributes ]
|
68
|
+
Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
|
69
|
+
|
67
70
|
method = HTTP_GET
|
68
71
|
path = Utils.__pathify Utils.__listify(arguments[:index]), '_analyze'
|
69
72
|
|
@@ -75,6 +75,9 @@ module Elasticsearch
|
|
75
75
|
:update_all_types
|
76
76
|
]
|
77
77
|
|
78
|
+
unsupported_params = [ :update_all_types ]
|
79
|
+
Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
|
80
|
+
|
78
81
|
method = HTTP_PUT
|
79
82
|
path = Utils.__pathify Utils.__escape(arguments[:index])
|
80
83
|
|
@@ -42,6 +42,8 @@ module Elasticsearch
|
|
42
42
|
# @see http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html
|
43
43
|
#
|
44
44
|
def forcemerge(arguments={})
|
45
|
+
Utils.__report_unsupported_method(__method__)
|
46
|
+
|
45
47
|
valid_params = [
|
46
48
|
:max_num_segments,
|
47
49
|
:only_expunge_deletes,
|
@@ -62,6 +62,9 @@ module Elasticsearch
|
|
62
62
|
:timeout
|
63
63
|
]
|
64
64
|
|
65
|
+
unsupported_params = [ :update_all_types ]
|
66
|
+
Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
|
67
|
+
|
65
68
|
method = HTTP_PUT
|
66
69
|
path = Utils.__pathify Utils.__listify(arguments[:index]), '_mapping', Utils.__escape(arguments[:type])
|
67
70
|
|
@@ -59,6 +59,9 @@ module Elasticsearch
|
|
59
59
|
:flat_settings
|
60
60
|
]
|
61
61
|
|
62
|
+
unsupported_params = [ :update_all_types ]
|
63
|
+
Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
|
64
|
+
|
62
65
|
method = HTTP_PUT
|
63
66
|
path = Utils.__pathify Utils.__listify(arguments[:index]), '_settings'
|
64
67
|
params = Utils.__validate_and_extract_params arguments, valid_params
|
@@ -12,6 +12,8 @@ module Elasticsearch
|
|
12
12
|
# @see https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html
|
13
13
|
#
|
14
14
|
def delete_pipeline(arguments={})
|
15
|
+
Utils.__report_unsupported_method(__method__)
|
16
|
+
|
15
17
|
raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
|
16
18
|
valid_params = [
|
17
19
|
:master_timeout,
|
@@ -11,6 +11,8 @@ module Elasticsearch
|
|
11
11
|
# @see https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html
|
12
12
|
#
|
13
13
|
def get_pipeline(arguments={})
|
14
|
+
Utils.__report_unsupported_method(__method__)
|
15
|
+
|
14
16
|
raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
|
15
17
|
valid_params = [
|
16
18
|
:master_timeout ]
|
@@ -13,6 +13,8 @@ module Elasticsearch
|
|
13
13
|
# @see https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html
|
14
14
|
#
|
15
15
|
def put_pipeline(arguments={})
|
16
|
+
Utils.__report_unsupported_method(__method__)
|
17
|
+
|
16
18
|
raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
|
17
19
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
18
20
|
valid_params = [
|
@@ -13,6 +13,8 @@ module Elasticsearch
|
|
13
13
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/simulate-pipeline-api.html
|
14
14
|
#
|
15
15
|
def simulate(arguments={})
|
16
|
+
Utils.__report_unsupported_method(__method__)
|
17
|
+
|
16
18
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
17
19
|
valid_params = [
|
18
20
|
:verbose ]
|
@@ -34,6 +34,9 @@ module Elasticsearch
|
|
34
34
|
:type,
|
35
35
|
:timeout ]
|
36
36
|
|
37
|
+
unsupported_params = [ :timeout ]
|
38
|
+
Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
|
39
|
+
|
37
40
|
method = HTTP_GET
|
38
41
|
path = Utils.__pathify '_nodes', Utils.__listify(arguments[:node_id]), 'hot_threads'
|
39
42
|
|
@@ -53,11 +53,13 @@ module Elasticsearch
|
|
53
53
|
:process,
|
54
54
|
:settings,
|
55
55
|
:thread_pool,
|
56
|
-
:transport
|
57
|
-
:timeout ]
|
56
|
+
:transport ]
|
58
57
|
|
59
58
|
valid_params = [ :timeout ]
|
60
59
|
|
60
|
+
unsupported_params = [ :timeout ]
|
61
|
+
Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
|
62
|
+
|
61
63
|
method = HTTP_GET
|
62
64
|
|
63
65
|
if metric
|
@@ -90,6 +90,9 @@ module Elasticsearch
|
|
90
90
|
:version,
|
91
91
|
:version_type ]
|
92
92
|
|
93
|
+
unsupported_params = [ :percolate_format ]
|
94
|
+
Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
|
95
|
+
|
93
96
|
method = HTTP_GET
|
94
97
|
path = Utils.__pathify Utils.__escape(arguments[:index]),
|
95
98
|
Utils.__escape(arguments[:type]),
|
@@ -50,6 +50,8 @@ module Elasticsearch
|
|
50
50
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html
|
51
51
|
#
|
52
52
|
def reindex(arguments={})
|
53
|
+
Utils.__report_unsupported_method(__method__)
|
54
|
+
|
53
55
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
54
56
|
valid_params = [
|
55
57
|
:refresh,
|
@@ -57,7 +59,8 @@ module Elasticsearch
|
|
57
59
|
:consistency,
|
58
60
|
:wait_for_completion,
|
59
61
|
:requests_per_second ]
|
60
|
-
|
62
|
+
|
63
|
+
method = HTTP_POST
|
61
64
|
path = "_reindex"
|
62
65
|
params = Utils.__validate_and_extract_params arguments, valid_params
|
63
66
|
body = arguments[:body]
|
@@ -10,10 +10,11 @@ module Elasticsearch
|
|
10
10
|
# @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html
|
11
11
|
#
|
12
12
|
def render_search_template(arguments={})
|
13
|
-
|
14
|
-
|
15
|
-
]
|
16
|
-
|
13
|
+
Utils.__report_unsupported_method(__method__)
|
14
|
+
|
15
|
+
valid_params = [ :id ]
|
16
|
+
|
17
|
+
method = HTTP_GET
|
17
18
|
path = "_render/template"
|
18
19
|
params = Utils.__validate_and_extract_params arguments, valid_params
|
19
20
|
body = arguments[:body]
|
@@ -156,6 +156,9 @@ module Elasticsearch
|
|
156
156
|
:timeout,
|
157
157
|
:version ]
|
158
158
|
|
159
|
+
unsupported_params = [ :terminate_after ]
|
160
|
+
Utils.__report_unsupported_parameters(arguments.keys, unsupported_params)
|
161
|
+
|
159
162
|
method = HTTP_GET
|
160
163
|
path = Utils.__pathify( Utils.__listify(arguments[:index]), Utils.__listify(arguments[:type]), UNDERSCORE_SEARCH )
|
161
164
|
|
@@ -18,6 +18,8 @@ module Elasticsearch
|
|
18
18
|
# @see http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks-cancel.html
|
19
19
|
#
|
20
20
|
def cancel(arguments={})
|
21
|
+
Utils.__report_unsupported_method(__method__)
|
22
|
+
|
21
23
|
valid_params = [
|
22
24
|
:node_id,
|
23
25
|
:actions,
|
@@ -26,8 +28,7 @@ module Elasticsearch
|
|
26
28
|
|
27
29
|
task_id = arguments.delete(:task_id)
|
28
30
|
|
29
|
-
method =
|
30
|
-
path = "_tasks"
|
31
|
+
method = HTTP_POST
|
31
32
|
path = Utils.__pathify( '_tasks', Utils.__escape(task_id), '_cancel' )
|
32
33
|
params = Utils.__validate_and_extract_params arguments, valid_params
|
33
34
|
body = nil
|
@@ -22,6 +22,8 @@ module Elasticsearch
|
|
22
22
|
# @see http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks-list.html
|
23
23
|
#
|
24
24
|
def list(arguments={})
|
25
|
+
Utils.__report_unsupported_method(__method__)
|
26
|
+
|
25
27
|
valid_params = [
|
26
28
|
:node_id,
|
27
29
|
:actions,
|
@@ -33,8 +35,7 @@ module Elasticsearch
|
|
33
35
|
|
34
36
|
task_id = arguments.delete(:task_id)
|
35
37
|
|
36
|
-
method =
|
37
|
-
path = "_tasks"
|
38
|
+
method = HTTP_GET
|
38
39
|
path = Utils.__pathify( '_tasks', Utils.__escape(task_id) )
|
39
40
|
params = Utils.__validate_and_extract_params arguments, valid_params
|
40
41
|
body = nil
|
@@ -58,6 +58,8 @@ module Elasticsearch
|
|
58
58
|
# @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/docs-termvectors.html
|
59
59
|
#
|
60
60
|
def termvectors(arguments={})
|
61
|
+
Utils.__report_unsupported_method(__method__)
|
62
|
+
|
61
63
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
62
64
|
raise ArgumentError, "Required argument 'type' missing" unless arguments[:type]
|
63
65
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticsearch-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karel Minarik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|
@@ -649,9 +649,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
649
649
|
version: '0'
|
650
650
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
651
651
|
requirements:
|
652
|
-
- - "
|
652
|
+
- - ">"
|
653
653
|
- !ruby/object:Gem::Version
|
654
|
-
version:
|
654
|
+
version: 1.3.1
|
655
655
|
requirements: []
|
656
656
|
rubyforge_project:
|
657
657
|
rubygems_version: 2.2.2
|