elasticsearch-api 7.0.0 → 7.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -13
- data/lib/elasticsearch/api/actions/abort_benchmark.rb +1 -1
- data/lib/elasticsearch/api/actions/benchmark.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/nodes.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/pending_tasks.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/recovery.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/thread_pool.rb +1 -1
- data/lib/elasticsearch/api/actions/cluster/pending_tasks.rb +1 -1
- data/lib/elasticsearch/api/actions/delete_by_query.rb +1 -1
- data/lib/elasticsearch/api/actions/delete_script.rb +1 -1
- data/lib/elasticsearch/api/actions/get_script.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/analyze.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/delete.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/delete_alias.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/flush.rb +1 -1
- 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_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/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/stats.rb +1 -1
- 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/mtermvectors.rb +1 -1
- data/lib/elasticsearch/api/actions/nodes/hot_threads.rb +1 -1
- data/lib/elasticsearch/api/actions/nodes/stats.rb +1 -1
- data/lib/elasticsearch/api/actions/put_script.rb +1 -1
- data/lib/elasticsearch/api/actions/render_search_template.rb +1 -1
- data/lib/elasticsearch/api/actions/scroll.rb +1 -1
- data/lib/elasticsearch/api/actions/search.rb +5 -5
- 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/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/termvectors.rb +1 -1
- data/lib/elasticsearch/api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 407d4a1f46709e2d53317b770526ba0c4e10fa81a0f719790706a7d741058a6c
|
4
|
+
data.tar.gz: 2e3f20e4a4c426603b0c9df4ad45dea1282a7910460a17f85dd41ec7ef7d6b80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 623a6efb4e7e2dc07dd91eaf929c71fd3086e907a9ab9dde612f2f9c78edd977b19c97d149047caad1719d4011343e0fa532c1974701cbf91873deb3febe746c
|
7
|
+
data.tar.gz: 7efff58c051a64d4bb8ca01ae0fc27252a7d9ac756855132fa7e656949a2e8299129a05f2918838ae6f5ceddba8eee4052d228db093870fbe6282f0837a87c2f
|
data/README.md
CHANGED
@@ -6,7 +6,7 @@ please refer to it, unless you want to use this library standalone.**
|
|
6
6
|
----
|
7
7
|
|
8
8
|
The `elasticsearch-api` library provides a Ruby implementation of
|
9
|
-
the [Elasticsearch](http://elasticsearch.
|
9
|
+
the [Elasticsearch](http://elasticsearch.com) REST API.
|
10
10
|
|
11
11
|
It does not provide an Elasticsearch client; see the
|
12
12
|
[`elasticsearch-transport`](https://github.com/elasticsearch/elasticsearch-ruby/tree/master/elasticsearch-transport) library.
|
@@ -191,16 +191,19 @@ can use Ruby 2.x syntax and features.
|
|
191
191
|
|
192
192
|
This software is licensed under the Apache 2 license, quoted below.
|
193
193
|
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
194
|
+
Licensed to Elasticsearch B.V. under one or more contributor
|
195
|
+
license agreements. See the NOTICE file distributed with
|
196
|
+
this work for additional information regarding copyright
|
197
|
+
ownership. Elasticsearch B.V. licenses this file to you under
|
198
|
+
the Apache License, Version 2.0 (the "License"); you may
|
199
|
+
not use this file except in compliance with the License.
|
198
200
|
You may obtain a copy of the License at
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
Unless required by applicable law or agreed to in writing,
|
203
|
-
distributed under the License is distributed on an
|
204
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
205
|
-
See the License for the
|
206
|
-
|
201
|
+
|
202
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
203
|
+
|
204
|
+
Unless required by applicable law or agreed to in writing,
|
205
|
+
software distributed under the License is distributed on an
|
206
|
+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
207
|
+
KIND, either express or implied. See the License for the
|
208
|
+
specific language governing permissions and limitations
|
209
|
+
under the License.
|
@@ -27,7 +27,7 @@ module Elasticsearch
|
|
27
27
|
#
|
28
28
|
# @option arguments [String] :name A benchmark name
|
29
29
|
#
|
30
|
-
# @see
|
30
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/search-benchmark.html
|
31
31
|
#
|
32
32
|
def abort_benchmark(arguments={})
|
33
33
|
method = HTTP_POST
|
@@ -62,7 +62,7 @@ module Elasticsearch
|
|
62
62
|
# @option arguments [Boolean] :verbose Specify whether to return verbose statistics about each iteration
|
63
63
|
# (default: false)
|
64
64
|
#
|
65
|
-
# @see
|
65
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/search-benchmark.html
|
66
66
|
#
|
67
67
|
def benchmark(arguments={})
|
68
68
|
method = HTTP_PUT
|
@@ -60,7 +60,7 @@ module Elasticsearch
|
|
60
60
|
# (default: false)
|
61
61
|
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
62
62
|
#
|
63
|
-
# @see
|
63
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-aliases.html
|
64
64
|
#
|
65
65
|
def aliases(arguments={})
|
66
66
|
name = arguments.delete(:name)
|
@@ -57,7 +57,7 @@ module Elasticsearch
|
|
57
57
|
# (default: false)
|
58
58
|
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
59
59
|
#
|
60
|
-
# @see
|
60
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html
|
61
61
|
#
|
62
62
|
def allocation(arguments={})
|
63
63
|
node_id = arguments.delete(:node_id)
|
@@ -52,7 +52,7 @@ module Elasticsearch
|
|
52
52
|
# (default: false)
|
53
53
|
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
54
54
|
#
|
55
|
-
# @see
|
55
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html
|
56
56
|
#
|
57
57
|
def count(arguments={})
|
58
58
|
index = arguments.delete(:index)
|
@@ -40,7 +40,7 @@ module Elasticsearch
|
|
40
40
|
# @option arguments [Boolean] :v Verbose mode. Display column headers
|
41
41
|
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
|
42
42
|
#
|
43
|
-
# @see
|
43
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html
|
44
44
|
#
|
45
45
|
def fielddata(arguments={})
|
46
46
|
fields = arguments.delete(:fields)
|
@@ -44,7 +44,7 @@ module Elasticsearch
|
|
44
44
|
# (default: false)
|
45
45
|
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
46
46
|
#
|
47
|
-
# @see
|
47
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-health.html
|
48
48
|
#
|
49
49
|
def health(arguments={})
|
50
50
|
method = HTTP_GET
|
@@ -24,7 +24,7 @@ module Elasticsearch
|
|
24
24
|
#
|
25
25
|
# @option arguments [Boolean] :help Return help information
|
26
26
|
#
|
27
|
-
# @see
|
27
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/cat.html
|
28
28
|
#
|
29
29
|
def help(arguments={})
|
30
30
|
method = HTTP_GET
|
@@ -66,7 +66,7 @@ module Elasticsearch
|
|
66
66
|
# (default: false)
|
67
67
|
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
68
68
|
#
|
69
|
-
# @see
|
69
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html
|
70
70
|
#
|
71
71
|
def indices(arguments={})
|
72
72
|
index = arguments.delete(:index)
|
@@ -43,7 +43,7 @@ module Elasticsearch
|
|
43
43
|
# (default: false)
|
44
44
|
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
45
45
|
#
|
46
|
-
# @see
|
46
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-master.html
|
47
47
|
#
|
48
48
|
def master(arguments={})
|
49
49
|
method = HTTP_GET
|
@@ -52,7 +52,7 @@ module Elasticsearch
|
|
52
52
|
# (default: false)
|
53
53
|
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
54
54
|
#
|
55
|
-
# @see
|
55
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodes.html
|
56
56
|
#
|
57
57
|
def nodes(arguments={})
|
58
58
|
method = HTTP_GET
|
@@ -43,7 +43,7 @@ module Elasticsearch
|
|
43
43
|
# (default: false)
|
44
44
|
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
45
45
|
#
|
46
|
-
# @see
|
46
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-pending-tasks.html
|
47
47
|
#
|
48
48
|
def pending_tasks(arguments={})
|
49
49
|
method = HTTP_GET
|
@@ -61,7 +61,7 @@ module Elasticsearch
|
|
61
61
|
# (default: false)
|
62
62
|
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
63
63
|
#
|
64
|
-
# @see
|
64
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html
|
65
65
|
#
|
66
66
|
def recovery(arguments={})
|
67
67
|
index = arguments.delete(:index)
|
@@ -33,7 +33,7 @@ module Elasticsearch
|
|
33
33
|
# @option arguments [Boolean] :v Verbose mode. Display column headers
|
34
34
|
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
|
35
35
|
#
|
36
|
-
# @see
|
36
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html
|
37
37
|
#
|
38
38
|
def segments(arguments={})
|
39
39
|
method = 'GET'
|
@@ -65,7 +65,7 @@ module Elasticsearch
|
|
65
65
|
# (default: false)
|
66
66
|
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
67
67
|
#
|
68
|
-
# @see
|
68
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html
|
69
69
|
#
|
70
70
|
def shards(arguments={})
|
71
71
|
index = arguments.delete(:index)
|
@@ -53,7 +53,7 @@ module Elasticsearch
|
|
53
53
|
# (default: false)
|
54
54
|
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
55
55
|
#
|
56
|
-
# @see
|
56
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html
|
57
57
|
#
|
58
58
|
def thread_pool(arguments={})
|
59
59
|
method = HTTP_GET
|
@@ -31,7 +31,7 @@ module Elasticsearch
|
|
31
31
|
# (default: false)
|
32
32
|
# @option arguments [Time] :master_timeout Specify timeout for connection to master
|
33
33
|
#
|
34
|
-
# @see
|
34
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-pending.html
|
35
35
|
#
|
36
36
|
def pending_tasks(arguments={})
|
37
37
|
method = HTTP_GET
|
@@ -22,7 +22,7 @@ module Elasticsearch
|
|
22
22
|
# Delete documents which match specified query.
|
23
23
|
#
|
24
24
|
# Provide the query either as a "query string" query in the `:q` argument, or using the Elasticsearch's
|
25
|
-
# [Query DSL](
|
25
|
+
# [Query DSL](https://www.elastic.co/guide/reference/query-dsl/) in the `:body` argument.
|
26
26
|
#
|
27
27
|
# @example Deleting documents with a simple query
|
28
28
|
#
|
@@ -25,7 +25,7 @@ module Elasticsearch
|
|
25
25
|
# @option arguments [Time] :timeout Explicit operation timeout
|
26
26
|
# @option arguments [Time] :master_timeout Specify timeout for connection to master
|
27
27
|
#
|
28
|
-
# @see
|
28
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html
|
29
29
|
#
|
30
30
|
def delete_script(arguments={})
|
31
31
|
raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
|
@@ -24,7 +24,7 @@ module Elasticsearch
|
|
24
24
|
# @option arguments [String] :id Script ID (*Required*)
|
25
25
|
# @option arguments [String] :lang Script language
|
26
26
|
#
|
27
|
-
# @see
|
27
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html#_indexed_scripts
|
28
28
|
#
|
29
29
|
def get_script(arguments={})
|
30
30
|
raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
|
@@ -61,7 +61,7 @@ module Elasticsearch
|
|
61
61
|
# (when request body is not used)
|
62
62
|
# @option arguments [String] :tokenizer The name of the tokenizer to use for the analysis
|
63
63
|
#
|
64
|
-
# @see
|
64
|
+
# @see https://www.elastic.co/guide/reference/api/admin-indices-analyze/
|
65
65
|
#
|
66
66
|
def analyze(arguments={})
|
67
67
|
method = HTTP_GET
|
@@ -41,7 +41,7 @@ module Elasticsearch
|
|
41
41
|
# unavailable (missing, closed, etc)
|
42
42
|
# @option arguments [Time] :timeout Explicit operation timeout
|
43
43
|
#
|
44
|
-
# @see
|
44
|
+
# @see https://www.elastic.co/guide/reference/api/admin-indices-open-close/
|
45
45
|
#
|
46
46
|
def close(arguments={})
|
47
47
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
@@ -82,7 +82,7 @@ module Elasticsearch
|
|
82
82
|
# @option arguments [Time] :timeout Explicit operation timeout
|
83
83
|
# @option arguments [Boolean] :master_timeout Timeout for connection to master
|
84
84
|
#
|
85
|
-
# @see
|
85
|
+
# @see https://www.elastic.co/guide/reference/api/admin-indices-create-index/
|
86
86
|
#
|
87
87
|
def create(arguments={})
|
88
88
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
@@ -48,7 +48,7 @@ module Elasticsearch
|
|
48
48
|
# @option arguments [Boolean] :allow_no_indices Ignore if a wildcard expression resolves to no concrete indices (default: false)
|
49
49
|
# @option arguments [List] :expand_wildcards Whether wildcard expressions should get expanded to open or closed indices (options: open, closed, none, all) (default: open)
|
50
50
|
#
|
51
|
-
# @see
|
51
|
+
# @see https://www.elastic.co/guide/reference/api/admin-indices-delete-index/
|
52
52
|
#
|
53
53
|
def delete(arguments={})
|
54
54
|
method = HTTP_DELETE
|
@@ -32,7 +32,7 @@ module Elasticsearch
|
|
32
32
|
# @option arguments [String] :name The name of the alias to be deleted (*Required*)
|
33
33
|
# @option arguments [Time] :timeout Explicit timestamp for the document
|
34
34
|
#
|
35
|
-
# @see
|
35
|
+
# @see https://www.elastic.co/guide/reference/api/admin-indices-aliases/
|
36
36
|
#
|
37
37
|
def delete_alias(arguments={})
|
38
38
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
@@ -33,7 +33,7 @@ module Elasticsearch
|
|
33
33
|
# @option arguments [String] :name The name of the template (*Required*)
|
34
34
|
# @option arguments [Time] :timeout Explicit operation timeout
|
35
35
|
#
|
36
|
-
# @see
|
36
|
+
# @see https://www.elastic.co/guide/reference/api/admin-indices-templates/
|
37
37
|
#
|
38
38
|
def delete_template(arguments={})
|
39
39
|
raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
|
@@ -41,7 +41,7 @@ module Elasticsearch
|
|
41
41
|
#
|
42
42
|
# @return [true,false]
|
43
43
|
#
|
44
|
-
# @see
|
44
|
+
# @see https://www.elastic.co/guide/reference/api/admin-indices-indices-exists/
|
45
45
|
#
|
46
46
|
def exists(arguments={})
|
47
47
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
@@ -40,7 +40,7 @@ module Elasticsearch
|
|
40
40
|
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
|
41
41
|
# (default: false)
|
42
42
|
#
|
43
|
-
# @see
|
43
|
+
# @see https://www.elastic.co/guide/reference/api/admin-indices-aliases/
|
44
44
|
#
|
45
45
|
def exists_alias(arguments={})
|
46
46
|
method = HTTP_HEAD
|
@@ -28,7 +28,7 @@ module Elasticsearch
|
|
28
28
|
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
|
29
29
|
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
30
30
|
#
|
31
|
-
# @see
|
31
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html
|
32
32
|
#
|
33
33
|
def exists_template(arguments={})
|
34
34
|
raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
|
@@ -38,7 +38,7 @@ module Elasticsearch
|
|
38
38
|
# unavailable (missing, closed, etc)
|
39
39
|
# @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)
|
40
40
|
#
|
41
|
-
# @see
|
41
|
+
# @see https://www.elastic.co/guide/reference/api/admin-indices-flush/
|
42
42
|
#
|
43
43
|
def flush(arguments={})
|
44
44
|
method = HTTP_POST
|
@@ -32,7 +32,7 @@ module Elasticsearch
|
|
32
32
|
# @option arguments [Boolean] :include_defaults Whether to return all default setting for each of the indices.
|
33
33
|
# @option arguments [Time] :master_timeout Specify timeout for connection to master
|
34
34
|
#
|
35
|
-
# @see
|
35
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html
|
36
36
|
#
|
37
37
|
def get(arguments={})
|
38
38
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
@@ -37,7 +37,7 @@ module Elasticsearch
|
|
37
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
38
|
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
|
39
39
|
#
|
40
|
-
# @see
|
40
|
+
# @see https://www.elastic.co/guide/reference/api/admin-indices-aliases/
|
41
41
|
#
|
42
42
|
def get_alias(arguments={})
|
43
43
|
method = HTTP_GET
|
@@ -44,7 +44,7 @@ module Elasticsearch
|
|
44
44
|
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, none, all)
|
45
45
|
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
|
46
46
|
#
|
47
|
-
# @see
|
47
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-field-mapping.html
|
48
48
|
#
|
49
49
|
def get_field_mapping(arguments={})
|
50
50
|
arguments = arguments.clone
|
@@ -43,7 +43,7 @@ module Elasticsearch
|
|
43
43
|
# @option arguments [Time] :master_timeout Specify timeout for connection to master
|
44
44
|
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
|
45
45
|
#
|
46
|
-
# @see
|
46
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-mapping.html
|
47
47
|
#
|
48
48
|
def get_mapping(arguments={})
|
49
49
|
method = HTTP_GET
|
@@ -48,7 +48,7 @@ module Elasticsearch
|
|
48
48
|
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
|
49
49
|
# @option arguments [Boolean] :include_defaults Whether to return all default setting for each of the indices.
|
50
50
|
#
|
51
|
-
# @see
|
51
|
+
# @see https://www.elastic.co/guide/reference/api/admin-indices-get-settings/
|
52
52
|
#
|
53
53
|
def get_settings(arguments={})
|
54
54
|
method = HTTP_GET
|
@@ -38,7 +38,7 @@ module Elasticsearch
|
|
38
38
|
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
39
39
|
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
|
40
40
|
#
|
41
|
-
# @see
|
41
|
+
# @see https://www.elastic.co/guide/reference/api/admin-indices-templates/
|
42
42
|
#
|
43
43
|
def get_template(arguments={})
|
44
44
|
method = HTTP_GET
|
@@ -34,7 +34,7 @@ module Elasticsearch
|
|
34
34
|
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, none, all)
|
35
35
|
# @option arguments [String] :wait_for_active_shards Sets the number of active shards to wait for before the operation returns.
|
36
36
|
#
|
37
|
-
# @see
|
37
|
+
# @see https://www.elastic.co/guide/reference/api/admin-indices-open-close/
|
38
38
|
#
|
39
39
|
def open(arguments={})
|
40
40
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
@@ -39,7 +39,7 @@ module Elasticsearch
|
|
39
39
|
# @option arguments [Time] :timeout Explicit timestamp for the document
|
40
40
|
# @option arguments [Time] :master_timeout Specify timeout for connection to master
|
41
41
|
#
|
42
|
-
# @see
|
42
|
+
# @see https://www.elastic.co/guide/reference/api/admin-indices-aliases/
|
43
43
|
#
|
44
44
|
def put_alias(arguments={})
|
45
45
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
@@ -52,7 +52,7 @@ module Elasticsearch
|
|
52
52
|
# @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)
|
53
53
|
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, none, all)
|
54
54
|
#
|
55
|
-
# @see
|
55
|
+
# @see https://www.elastic.co/guide/reference/api/admin-indices-put-mapping/
|
56
56
|
#
|
57
57
|
def put_mapping(arguments={})
|
58
58
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
@@ -51,7 +51,7 @@ module Elasticsearch
|
|
51
51
|
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, none, all)
|
52
52
|
# @option arguments [Boolean] :flat_settings Return settings in flat format (default: false)
|
53
53
|
#
|
54
|
-
# @see
|
54
|
+
# @see https://www.elastic.co/guide/reference/api/admin-indices-update-settings/
|
55
55
|
#
|
56
56
|
def put_settings(arguments={})
|
57
57
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
@@ -36,7 +36,7 @@ module Elasticsearch
|
|
36
36
|
# @option arguments [Time] :master_timeout Specify timeout for connection to master
|
37
37
|
# @option arguments [Boolean] :flat_settings Return settings in flat format (default: false)
|
38
38
|
#
|
39
|
-
# @see
|
39
|
+
# @see https://www.elastic.co/guide/reference/api/admin-indices-templates/
|
40
40
|
#
|
41
41
|
def put_template(arguments={})
|
42
42
|
raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
|
@@ -38,7 +38,7 @@ module Elasticsearch
|
|
38
38
|
# @option arguments [Boolean] :detailed Whether to display detailed information about shard recovery
|
39
39
|
# @option arguments [Boolean] :active_only Display only those recoveries that are currently on-going
|
40
40
|
#
|
41
|
-
# @see
|
41
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.html
|
42
42
|
#
|
43
43
|
def recovery(arguments={})
|
44
44
|
method = HTTP_GET
|
@@ -40,7 +40,7 @@ module Elasticsearch
|
|
40
40
|
# @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)
|
41
41
|
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, none, all)
|
42
42
|
#
|
43
|
-
# @see
|
43
|
+
# @see https://www.elastic.co/guide/reference/api/admin-indices-refresh/
|
44
44
|
#
|
45
45
|
def refresh(arguments={})
|
46
46
|
method = HTTP_POST
|
@@ -90,7 +90,7 @@ module Elasticsearch
|
|
90
90
|
#
|
91
91
|
# @option arguments [Boolean] :include_segment_file_sizes Whether to report the aggregated disk usage of each one of the Lucene index files. Only applies if segment stats are requested. (default: false)
|
92
92
|
#
|
93
|
-
# @see
|
93
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-stats.html
|
94
94
|
#
|
95
95
|
def stats(arguments={})
|
96
96
|
method = HTTP_GET
|
@@ -46,7 +46,7 @@ module Elasticsearch
|
|
46
46
|
# @option arguments [Time] :timeout Request timeout
|
47
47
|
# @option arguments [Time] :master_timeout Specify timeout for connection to master
|
48
48
|
#
|
49
|
-
# @see
|
49
|
+
# @see https://www.elastic.co/guide/reference/api/admin-indices-aliases/
|
50
50
|
#
|
51
51
|
def update_aliases(arguments={})
|
52
52
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
@@ -29,7 +29,7 @@ module Elasticsearch
|
|
29
29
|
# @option arguments [Boolean] :wait_for_completion Specify whether the request should block until the all segments are upgraded (default: false)
|
30
30
|
# @option arguments [Boolean] :only_ancient_segments If true, only ancient (an older Lucene major release) segments will be upgraded
|
31
31
|
#
|
32
|
-
# @see
|
32
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html
|
33
33
|
#
|
34
34
|
def upgrade(arguments={})
|
35
35
|
method = HTTP_POST
|
@@ -70,7 +70,7 @@ module Elasticsearch
|
|
70
70
|
# @option arguments [Boolean] :rewrite Provide a more detailed explanation showing the actual Lucene query that will be executed.
|
71
71
|
# @option arguments [Boolean] :all_shards Execute validation on all shards instead of one random shard per index
|
72
72
|
#
|
73
|
-
# @see
|
73
|
+
# @see https://www.elastic.co/guide/reference/api/validate/
|
74
74
|
#
|
75
75
|
def validate_query(arguments={})
|
76
76
|
method = HTTP_GET
|
@@ -43,7 +43,7 @@ module Elasticsearch
|
|
43
43
|
# @option arguments [Number] :version Explicit version number for concurrency control
|
44
44
|
# @option arguments [String] :version_type Specific version type (options: internal, external, external_gte, force)
|
45
45
|
#
|
46
|
-
# @see
|
46
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html
|
47
47
|
#
|
48
48
|
# @see #mget
|
49
49
|
# @see #termvector
|
@@ -40,7 +40,7 @@ module Elasticsearch
|
|
40
40
|
#
|
41
41
|
# @return [String]
|
42
42
|
#
|
43
|
-
# @see
|
43
|
+
# @see https://www.elastic.co/guide/reference/api/admin-cluster-nodes-hot-threads/
|
44
44
|
#
|
45
45
|
def hot_threads(arguments={})
|
46
46
|
method = HTTP_GET
|
@@ -42,7 +42,7 @@ module Elasticsearch
|
|
42
42
|
# @option arguments [Time] :timeout Explicit operation timeout
|
43
43
|
# @option arguments [Boolean] :include_segment_file_sizes Whether to report the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested)
|
44
44
|
#
|
45
|
-
# @see
|
45
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html
|
46
46
|
#
|
47
47
|
def stats(arguments={})
|
48
48
|
arguments = arguments.clone
|
@@ -42,7 +42,7 @@ module Elasticsearch
|
|
42
42
|
# @option arguments [Time] :master_timeout Specify timeout for connection to master
|
43
43
|
# @option arguments [String] :context Context name to compile script against
|
44
44
|
#
|
45
|
-
# @see
|
45
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html#_indexed_scripts
|
46
46
|
#
|
47
47
|
def put_script(arguments={})
|
48
48
|
raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
|
@@ -24,7 +24,7 @@ module Elasticsearch
|
|
24
24
|
# @option arguments [String] :id The id of the stored search template
|
25
25
|
# @option arguments [Hash] :body The search definition template and its params
|
26
26
|
#
|
27
|
-
# @see
|
27
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/search-template.html
|
28
28
|
#
|
29
29
|
def render_search_template(arguments={})
|
30
30
|
method = 'GET'
|
@@ -63,7 +63,7 @@ module Elasticsearch
|
|
63
63
|
# @option arguments [String] :scroll_id The scroll ID for scrolled search
|
64
64
|
# @option arguments [Boolean] :rest_total_hits_as_int Indicates whether hits.total should be rendered as an integer or an object in the rest search response
|
65
65
|
#
|
66
|
-
# @see
|
66
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/guide/current/scan-scroll.html#scan-scroll
|
67
67
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-scroll.html
|
68
68
|
#
|
69
69
|
def scroll(arguments={})
|
@@ -22,10 +22,10 @@ module Elasticsearch
|
|
22
22
|
# Return documents matching a query, as well as aggregations (facets), highlighted snippets, suggestions, etc.
|
23
23
|
#
|
24
24
|
# The search API is used to query one or more indices either using simple
|
25
|
-
# [query string queries](
|
25
|
+
# [query string queries](https://www.elastic.co/guide/reference/api/search/uri-request/)
|
26
26
|
# as the `:q` argument , or by passing the
|
27
|
-
# [full request definition](
|
28
|
-
# in the [Query DSL](
|
27
|
+
# [full request definition](https://www.elastic.co/guide/reference/api/search/request-body/)
|
28
|
+
# in the [Query DSL](https://www.elastic.co/guide/reference/query-dsl/) as the `:body` argument.
|
29
29
|
#
|
30
30
|
# @example Search with a simple query string query
|
31
31
|
#
|
@@ -139,8 +139,8 @@ module Elasticsearch
|
|
139
139
|
#
|
140
140
|
# @return [Hash]
|
141
141
|
#
|
142
|
-
# @see
|
143
|
-
# @see
|
142
|
+
# @see https://www.elastic.co/guide/reference/api/search/
|
143
|
+
# @see https://www.elastic.co/guide/reference/api/search/request-body/
|
144
144
|
#
|
145
145
|
def search(arguments={})
|
146
146
|
arguments[:index] = UNDERSCORE_ALL if ! arguments[:index] && arguments[:type]
|
@@ -36,7 +36,7 @@ module Elasticsearch
|
|
36
36
|
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices
|
37
37
|
# that are open, closed or both. (options: open, closed)
|
38
38
|
#
|
39
|
-
# @see
|
39
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html
|
40
40
|
#
|
41
41
|
def search_shards(arguments={})
|
42
42
|
method = HTTP_GET
|
@@ -52,7 +52,7 @@ module Elasticsearch
|
|
52
52
|
# @option arguments [Boolean] :rest_total_hits_as_int Indicates whether hits.total should be rendered as an integer or an object in the rest search response
|
53
53
|
# @option arguments [Boolean] :ccs_minimize_roundtrips Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution
|
54
54
|
#
|
55
|
-
# @see
|
55
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html
|
56
56
|
#
|
57
57
|
def search_template(arguments={})
|
58
58
|
method = HTTP_GET
|
@@ -39,7 +39,7 @@ module Elasticsearch
|
|
39
39
|
# @option arguments [Boolean] :wait_for_completion Whether the request should block and wait until
|
40
40
|
# the operation has completed
|
41
41
|
#
|
42
|
-
# @see
|
42
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html#_snapshot
|
43
43
|
#
|
44
44
|
def create(arguments={})
|
45
45
|
raise ArgumentError, "Required argument 'repository' missing" unless arguments[:repository]
|
@@ -36,7 +36,7 @@ module Elasticsearch
|
|
36
36
|
# @option arguments [Time] :timeout Explicit operation timeout
|
37
37
|
# @option arguments [Boolean] :verify Whether to verify the repository after creation
|
38
38
|
#
|
39
|
-
# @see
|
39
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html#_repositories
|
40
40
|
#
|
41
41
|
def create_repository(arguments={})
|
42
42
|
raise ArgumentError, "Required argument 'repository' missing" unless arguments[:repository]
|
@@ -33,7 +33,7 @@ module Elasticsearch
|
|
33
33
|
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
34
34
|
# @option arguments [Number,List] :ignore The list of HTTP errors to ignore
|
35
35
|
#
|
36
|
-
# @see
|
36
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html
|
37
37
|
#
|
38
38
|
def delete(arguments={})
|
39
39
|
raise ArgumentError, "Required argument 'repository' missing" unless arguments[:repository]
|
@@ -31,7 +31,7 @@ module Elasticsearch
|
|
31
31
|
# @option arguments [Time] :timeout Explicit operation timeout
|
32
32
|
# @option arguments [Number,List] :ignore The list of HTTP errors to ignore
|
33
33
|
#
|
34
|
-
# @see
|
34
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html
|
35
35
|
#
|
36
36
|
def delete_repository(arguments={})
|
37
37
|
raise ArgumentError, "Required argument 'repository' missing" unless arguments[:repository]
|
@@ -41,7 +41,7 @@ module Elasticsearch
|
|
41
41
|
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
42
42
|
# @option arguments [Boolean] :verbose Whether to show verbose snapshot info or only show the basic info found in the repository index blob
|
43
43
|
#
|
44
|
-
# @see
|
44
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html
|
45
45
|
#
|
46
46
|
def get(arguments={})
|
47
47
|
raise ArgumentError, "Required argument 'repository' missing" unless arguments[:repository]
|
@@ -37,7 +37,7 @@ module Elasticsearch
|
|
37
37
|
# (default: false)
|
38
38
|
# @option arguments [Number,List] :ignore The list of HTTP errors to ignore
|
39
39
|
#
|
40
|
-
# @see
|
40
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html
|
41
41
|
#
|
42
42
|
def get_repository(arguments={})
|
43
43
|
repository = arguments.delete(:repository)
|
@@ -43,7 +43,7 @@ module Elasticsearch
|
|
43
43
|
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
44
44
|
# @option arguments [Boolean] :wait_for_completion Should this request wait until the operation has completed before returning
|
45
45
|
#
|
46
|
-
# @see
|
46
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html
|
47
47
|
#
|
48
48
|
def restore(arguments={})
|
49
49
|
raise ArgumentError, "Required argument 'repository' missing" unless arguments[:repository]
|
@@ -37,7 +37,7 @@ module Elasticsearch
|
|
37
37
|
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
38
38
|
# @option arguments [Number,List] :ignore The list of HTTP errors to ignore
|
39
39
|
#
|
40
|
-
# @see
|
40
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html#_snapshot_status
|
41
41
|
#
|
42
42
|
def status(arguments={})
|
43
43
|
repository = arguments.delete(:repository)
|
@@ -26,7 +26,7 @@ module Elasticsearch
|
|
26
26
|
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
27
27
|
# @option arguments [Time] :timeout Explicit operation timeout
|
28
28
|
#
|
29
|
-
# @see
|
29
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html
|
30
30
|
#
|
31
31
|
def verify_repository(arguments={})
|
32
32
|
raise ArgumentError, "Required argument 'repository' missing" unless arguments[:repository]
|
@@ -68,7 +68,7 @@ module Elasticsearch
|
|
68
68
|
# @option arguments [Number] :version Explicit version number for concurrency control
|
69
69
|
# @option arguments [String] :version_type Specific version type (options: internal, external, external_gte, force)
|
70
70
|
#
|
71
|
-
# @see
|
71
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html
|
72
72
|
#
|
73
73
|
def termvectors(arguments={})
|
74
74
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
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: 7.
|
4
|
+
version: 7.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karel Minarik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|