elasticsearch-api 7.8.0 → 7.8.1
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/lib/elasticsearch/api/actions/bulk.rb +0 -1
- data/lib/elasticsearch/api/actions/cat/aliases.rb +0 -1
- data/lib/elasticsearch/api/actions/cat/allocation.rb +0 -1
- data/lib/elasticsearch/api/actions/cat/fielddata.rb +0 -1
- data/lib/elasticsearch/api/actions/cat/health.rb +0 -1
- data/lib/elasticsearch/api/actions/cat/indices.rb +0 -4
- data/lib/elasticsearch/api/actions/cat/nodes.rb +0 -2
- data/lib/elasticsearch/api/actions/cat/pending_tasks.rb +0 -1
- data/lib/elasticsearch/api/actions/cat/recovery.rb +0 -2
- data/lib/elasticsearch/api/actions/cat/segments.rb +0 -1
- data/lib/elasticsearch/api/actions/cat/shards.rb +0 -2
- data/lib/elasticsearch/api/actions/cat/snapshots.rb +0 -1
- data/lib/elasticsearch/api/actions/cat/tasks.rb +0 -1
- data/lib/elasticsearch/api/actions/cat/thread_pool.rb +0 -1
- data/lib/elasticsearch/api/actions/cluster/delete_component_template.rb +4 -0
- data/lib/elasticsearch/api/actions/cluster/exists_component_template.rb +4 -0
- data/lib/elasticsearch/api/actions/cluster/get_component_template.rb +4 -0
- data/lib/elasticsearch/api/actions/cluster/health.rb +0 -4
- data/lib/elasticsearch/api/actions/cluster/put_component_template.rb +4 -0
- data/lib/elasticsearch/api/actions/cluster/reroute.rb +0 -1
- data/lib/elasticsearch/api/actions/cluster/state.rb +0 -2
- data/lib/elasticsearch/api/actions/count.rb +0 -2
- data/lib/elasticsearch/api/actions/create.rb +0 -2
- data/lib/elasticsearch/api/actions/delete.rb +0 -2
- data/lib/elasticsearch/api/actions/delete_by_query.rb +0 -4
- data/lib/elasticsearch/api/actions/exists.rb +0 -1
- data/lib/elasticsearch/api/actions/exists_source.rb +0 -1
- data/lib/elasticsearch/api/actions/explain.rb +0 -1
- data/lib/elasticsearch/api/actions/field_caps.rb +0 -1
- data/lib/elasticsearch/api/actions/get.rb +0 -1
- data/lib/elasticsearch/api/actions/get_script_context.rb +4 -0
- data/lib/elasticsearch/api/actions/get_script_languages.rb +4 -0
- data/lib/elasticsearch/api/actions/get_source.rb +0 -1
- data/lib/elasticsearch/api/actions/index.rb +0 -3
- data/lib/elasticsearch/api/actions/indices/clear_cache.rb +0 -1
- data/lib/elasticsearch/api/actions/indices/close.rb +0 -1
- data/lib/elasticsearch/api/actions/indices/create_data_stream.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/delete.rb +0 -1
- data/lib/elasticsearch/api/actions/indices/delete_data_stream.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/delete_index_template.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/exists.rb +0 -1
- data/lib/elasticsearch/api/actions/indices/exists_alias.rb +0 -1
- data/lib/elasticsearch/api/actions/indices/exists_index_template.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/exists_type.rb +0 -1
- data/lib/elasticsearch/api/actions/indices/flush.rb +0 -1
- data/lib/elasticsearch/api/actions/indices/flush_synced.rb +0 -1
- data/lib/elasticsearch/api/actions/indices/forcemerge.rb +0 -1
- data/lib/elasticsearch/api/actions/indices/get.rb +0 -1
- data/lib/elasticsearch/api/actions/indices/get_alias.rb +0 -1
- data/lib/elasticsearch/api/actions/indices/get_data_streams.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/get_field_mapping.rb +0 -1
- data/lib/elasticsearch/api/actions/indices/get_index_template.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/get_mapping.rb +0 -1
- data/lib/elasticsearch/api/actions/indices/get_settings.rb +0 -1
- data/lib/elasticsearch/api/actions/indices/get_upgrade.rb +0 -1
- data/lib/elasticsearch/api/actions/indices/open.rb +0 -1
- data/lib/elasticsearch/api/actions/indices/put_index_template.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/put_mapping.rb +0 -1
- data/lib/elasticsearch/api/actions/indices/put_settings.rb +0 -1
- data/lib/elasticsearch/api/actions/indices/refresh.rb +0 -1
- data/lib/elasticsearch/api/actions/indices/segments.rb +0 -1
- data/lib/elasticsearch/api/actions/indices/shard_stores.rb +0 -2
- data/lib/elasticsearch/api/actions/indices/simulate_index_template.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/stats.rb +0 -3
- data/lib/elasticsearch/api/actions/indices/upgrade.rb +0 -1
- data/lib/elasticsearch/api/actions/indices/validate_query.rb +0 -2
- data/lib/elasticsearch/api/actions/msearch.rb +0 -1
- data/lib/elasticsearch/api/actions/msearch_template.rb +0 -1
- data/lib/elasticsearch/api/actions/mtermvectors.rb +0 -1
- data/lib/elasticsearch/api/actions/nodes/hot_threads.rb +0 -1
- data/lib/elasticsearch/api/actions/nodes/info.rb +0 -1
- data/lib/elasticsearch/api/actions/nodes/stats.rb +0 -3
- data/lib/elasticsearch/api/actions/nodes/usage.rb +0 -1
- data/lib/elasticsearch/api/actions/rank_eval.rb +4 -2
- data/lib/elasticsearch/api/actions/scripts_painless_execute.rb +4 -0
- data/lib/elasticsearch/api/actions/search.rb +0 -4
- data/lib/elasticsearch/api/actions/search_shards.rb +0 -1
- data/lib/elasticsearch/api/actions/search_template.rb +0 -2
- data/lib/elasticsearch/api/actions/tasks/list.rb +0 -1
- data/lib/elasticsearch/api/actions/termvectors.rb +0 -1
- data/lib/elasticsearch/api/actions/update.rb +0 -1
- data/lib/elasticsearch/api/actions/update_by_query.rb +0 -4
- data/lib/elasticsearch/api/version.rb +1 -1
- data/utils/thor/generate_source.rb +27 -1
- data/utils/thor/templates/_documentation_top.erb +1 -0
- metadata +3 -3
@@ -28,7 +28,6 @@ module Elasticsearch
|
|
28
28
|
# @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)
|
29
29
|
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both.
|
30
30
|
# (options: open,closed,hidden,none,all)
|
31
|
-
|
32
31
|
# @option arguments [Hash] :headers Custom HTTP headers
|
33
32
|
#
|
34
33
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.8/search-shards.html
|
@@ -27,13 +27,11 @@ module Elasticsearch
|
|
27
27
|
# @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)
|
28
28
|
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both.
|
29
29
|
# (options: open,closed,hidden,none,all)
|
30
|
-
|
31
30
|
# @option arguments [String] :preference Specify the node or shard the operation should be performed on (default: random)
|
32
31
|
# @option arguments [List] :routing A comma-separated list of specific routing values
|
33
32
|
# @option arguments [Time] :scroll Specify how long a consistent view of the index should be maintained for scrolled search
|
34
33
|
# @option arguments [String] :search_type Search operation type
|
35
34
|
# (options: query_then_fetch,query_and_fetch,dfs_query_then_fetch,dfs_query_and_fetch)
|
36
|
-
|
37
35
|
# @option arguments [Boolean] :explain Specify whether to return detailed information about score computation as part of a hit
|
38
36
|
# @option arguments [Boolean] :profile Specify whether to profile the query execution
|
39
37
|
# @option arguments [Boolean] :typed_keys Specify whether aggregation and suggester names should be prefixed by their respective types in the response
|
@@ -28,7 +28,6 @@ module Elasticsearch
|
|
28
28
|
# @option arguments [Boolean] :wait_for_completion Wait for the matching tasks to complete (default: false)
|
29
29
|
# @option arguments [String] :group_by Group tasks by nodes or parent/child relationships
|
30
30
|
# (options: nodes,parents,none)
|
31
|
-
|
32
31
|
# @option arguments [Time] :timeout Explicit operation timeout
|
33
32
|
# @option arguments [Hash] :headers Custom HTTP headers
|
34
33
|
#
|
@@ -35,7 +35,6 @@ module Elasticsearch
|
|
35
35
|
# @option arguments [Number] :version Explicit version number for concurrency control
|
36
36
|
# @option arguments [String] :version_type Specific version type
|
37
37
|
# (options: internal,external,external_gte,force)
|
38
|
-
|
39
38
|
# @option arguments [Hash] :headers Custom HTTP headers
|
40
39
|
# @option arguments [Hash] :body Define parameters and or supply a document to get termvectors for. See documentation.
|
41
40
|
#
|
@@ -30,7 +30,6 @@ module Elasticsearch
|
|
30
30
|
# @option arguments [String] :lang The script language (default: painless)
|
31
31
|
# @option arguments [String] :refresh If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes.
|
32
32
|
# (options: true,false,wait_for)
|
33
|
-
|
34
33
|
# @option arguments [Number] :retry_on_conflict Specify how many times should the operation be retried when a conflict occurs (default: 0)
|
35
34
|
# @option arguments [String] :routing Specific routing value
|
36
35
|
# @option arguments [Time] :timeout Explicit operation timeout
|
@@ -27,17 +27,14 @@ module Elasticsearch
|
|
27
27
|
# @option arguments [Boolean] :analyze_wildcard Specify whether wildcard and prefix queries should be analyzed (default: false)
|
28
28
|
# @option arguments [String] :default_operator The default operator for query string query (AND or OR)
|
29
29
|
# (options: AND,OR)
|
30
|
-
|
31
30
|
# @option arguments [String] :df The field to use as default where no field prefix is given in the query string
|
32
31
|
# @option arguments [Number] :from Starting offset (default: 0)
|
33
32
|
# @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
34
33
|
# @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)
|
35
34
|
# @option arguments [String] :conflicts What to do when the update by query hits version conflicts?
|
36
35
|
# (options: abort,proceed)
|
37
|
-
|
38
36
|
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both.
|
39
37
|
# (options: open,closed,hidden,none,all)
|
40
|
-
|
41
38
|
# @option arguments [Boolean] :lenient Specify whether format-based query failures (such as providing text to a numeric field) should be ignored
|
42
39
|
# @option arguments [String] :pipeline Ingest pipeline to set on index requests made by this action. (default: none)
|
43
40
|
# @option arguments [String] :preference Specify the node or shard the operation should be performed on (default: random)
|
@@ -46,7 +43,6 @@ module Elasticsearch
|
|
46
43
|
# @option arguments [Time] :scroll Specify how long a consistent view of the index should be maintained for scrolled search
|
47
44
|
# @option arguments [String] :search_type Search operation type
|
48
45
|
# (options: query_then_fetch,dfs_query_then_fetch)
|
49
|
-
|
50
46
|
# @option arguments [Time] :search_timeout Explicit timeout for each search request. Defaults to no timeout.
|
51
47
|
# @option arguments [Number] :size Deprecated, please use `max_docs` instead
|
52
48
|
# @option arguments [Number] :max_docs Maximum number of documents to process (default: all documents)
|
@@ -222,12 +222,38 @@ module Elasticsearch
|
|
222
222
|
info['type'] = 'String' if info['type'] == 'enum' # Rename 'enums' to 'strings'
|
223
223
|
tipo = info['type'] ? info['type'].capitalize : 'String'
|
224
224
|
description = info['description'] ? info['description'].strip : '[TODO]'
|
225
|
-
options = info['options'] ? "\n # (options: #{info['options'].join(', '.strip)})
|
225
|
+
options = info['options'] ? "\n # (options: #{info['options'].join(', '.strip)})" : nil
|
226
226
|
required = info['required'] ? ' (*Required*)' : ''
|
227
227
|
deprecated = info['deprecated'] ? ' *Deprecated*' : ''
|
228
228
|
"# @option arguments [#{tipo}] :#{name} #{description} #{required} #{deprecated} #{options}\n"
|
229
229
|
end
|
230
230
|
|
231
|
+
def stability_doc_helper(stability)
|
232
|
+
return if stability == 'stable'
|
233
|
+
|
234
|
+
if stability == 'experimental'
|
235
|
+
<<~MSG
|
236
|
+
# This functionality is Experimental and may be changed or removed
|
237
|
+
# completely in a future release. Elastic will take a best effort approach
|
238
|
+
# to fix any issues, but experimental features are not subject to the
|
239
|
+
# support SLA of official GA features.
|
240
|
+
MSG
|
241
|
+
elsif stability == 'beta'
|
242
|
+
<<~MSG
|
243
|
+
# This functionality is in Beta and is subject to change. The design and
|
244
|
+
# code is less mature than official GA features and is being provided
|
245
|
+
# as-is with no warranties. Beta features are not subject to the support
|
246
|
+
# SLA of official GA features.
|
247
|
+
MSG
|
248
|
+
else
|
249
|
+
<<~MSG
|
250
|
+
# This functionality is subject to potential breaking changes within a
|
251
|
+
# minor version, meaning that your referencing code may break when this
|
252
|
+
# library is upgraded.
|
253
|
+
MSG
|
254
|
+
end
|
255
|
+
end
|
256
|
+
|
231
257
|
def generate_tests
|
232
258
|
copy_file 'templates/test_helper.rb', @output.join('test').join('test_helper.rb')
|
233
259
|
|
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.8.
|
4
|
+
version: 7.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karel Minarik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|
@@ -695,7 +695,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
695
695
|
- !ruby/object:Gem::Version
|
696
696
|
version: '0'
|
697
697
|
requirements: []
|
698
|
-
rubygems_version: 3.1.
|
698
|
+
rubygems_version: 3.1.4
|
699
699
|
signing_key:
|
700
700
|
specification_version: 4
|
701
701
|
summary: Ruby API for Elasticsearch.
|