elasticsearch-serverless 0.4.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/elasticsearch-serverless/api/async_search/delete.rb +2 -2
- data/lib/elasticsearch-serverless/api/async_search/get.rb +2 -1
- data/lib/elasticsearch-serverless/api/async_search/status.rb +5 -3
- data/lib/elasticsearch-serverless/api/async_search/submit.rb +5 -7
- data/lib/elasticsearch-serverless/api/cat/aliases.rb +0 -4
- data/lib/elasticsearch-serverless/api/cat/component_templates.rb +4 -4
- data/lib/elasticsearch-serverless/api/cat/count.rb +0 -4
- data/lib/elasticsearch-serverless/api/cat/help.rb +0 -4
- data/lib/elasticsearch-serverless/api/cat/indices.rb +0 -4
- data/lib/elasticsearch-serverless/api/cat/ml_data_frame_analytics.rb +0 -4
- data/lib/elasticsearch-serverless/api/cat/ml_datafeeds.rb +0 -4
- data/lib/elasticsearch-serverless/api/cat/ml_jobs.rb +0 -4
- data/lib/elasticsearch-serverless/api/cat/ml_trained_models.rb +0 -4
- data/lib/elasticsearch-serverless/api/cat/transforms.rb +0 -4
- data/lib/elasticsearch-serverless/api/clear_scroll.rb +3 -12
- data/lib/elasticsearch-serverless/api/close_point_in_time.rb +5 -1
- data/lib/elasticsearch-serverless/api/connector/check_in.rb +2 -1
- data/lib/elasticsearch-serverless/api/connector/delete.rb +5 -1
- data/lib/elasticsearch-serverless/api/connector/get.rb +2 -1
- data/lib/elasticsearch-serverless/api/connector/list.rb +2 -1
- data/lib/elasticsearch-serverless/api/connector/post.rb +4 -1
- data/lib/elasticsearch-serverless/api/connector/put.rb +1 -1
- data/lib/elasticsearch-serverless/api/connector/sync_job_cancel.rb +3 -1
- data/lib/elasticsearch-serverless/api/connector/sync_job_delete.rb +3 -1
- data/lib/elasticsearch-serverless/api/connector/sync_job_get.rb +1 -1
- data/lib/elasticsearch-serverless/api/connector/sync_job_list.rb +2 -1
- data/lib/elasticsearch-serverless/api/connector/sync_job_post.rb +2 -1
- data/lib/elasticsearch-serverless/api/connector/update_active_filtering.rb +1 -0
- data/lib/elasticsearch-serverless/api/connector/update_api_key_id.rb +5 -1
- data/lib/elasticsearch-serverless/api/connector/update_configuration.rb +2 -1
- data/lib/elasticsearch-serverless/api/connector/update_error.rb +4 -1
- data/lib/elasticsearch-serverless/api/connector/update_filtering.rb +4 -1
- data/lib/elasticsearch-serverless/api/connector/update_filtering_validation.rb +2 -1
- data/lib/elasticsearch-serverless/api/connector/update_index_name.rb +2 -1
- data/lib/elasticsearch-serverless/api/connector/update_name.rb +1 -1
- data/lib/elasticsearch-serverless/api/connector/update_native.rb +1 -1
- data/lib/elasticsearch-serverless/api/connector/update_pipeline.rb +2 -1
- data/lib/elasticsearch-serverless/api/connector/update_scheduling.rb +1 -1
- data/lib/elasticsearch-serverless/api/connector/update_service_type.rb +1 -1
- data/lib/elasticsearch-serverless/api/connector/update_status.rb +1 -1
- data/lib/elasticsearch-serverless/api/field_caps.rb +5 -3
- data/lib/elasticsearch-serverless/api/indices/analyze.rb +2 -1
- data/lib/elasticsearch-serverless/api/indices/exists_alias.rb +0 -1
- data/lib/elasticsearch-serverless/api/indices/get_alias.rb +0 -1
- data/lib/elasticsearch-serverless/api/indices/put_data_lifecycle.rb +2 -1
- data/lib/elasticsearch-serverless/api/inference/delete.rb +0 -4
- data/lib/elasticsearch-serverless/api/inference/get.rb +0 -4
- data/lib/elasticsearch-serverless/api/inference/inference.rb +0 -4
- data/lib/elasticsearch-serverless/api/inference/put.rb +0 -4
- data/lib/elasticsearch-serverless/api/machine_learning/infer_trained_model.rb +69 -0
- data/lib/elasticsearch-serverless/api/machine_learning/put_datafeed.rb +2 -2
- data/lib/elasticsearch-serverless/api/mget.rb +4 -1
- data/lib/elasticsearch-serverless/api/msearch.rb +11 -1
- data/lib/elasticsearch-serverless/api/msearch_template.rb +1 -1
- data/lib/elasticsearch-serverless/api/mtermvectors.rb +5 -1
- data/lib/elasticsearch-serverless/api/open_point_in_time.rb +6 -1
- data/lib/elasticsearch-serverless/api/query_rules/test.rb +63 -0
- data/lib/elasticsearch-serverless/api/rank_eval.rb +2 -1
- data/lib/elasticsearch-serverless/api/render_search_template.rb +2 -1
- data/lib/elasticsearch-serverless/api/scroll.rb +11 -12
- data/lib/elasticsearch-serverless/api/search.rb +2 -3
- data/lib/elasticsearch-serverless/api/search_mvt.rb +1 -1
- data/lib/elasticsearch-serverless/api/search_template.rb +1 -1
- data/lib/elasticsearch-serverless/api/security/create_api_key.rb +1 -1
- data/lib/elasticsearch-serverless/api/{indices/delete_data_lifecycle.rb → security/delete_role.rb} +9 -11
- data/lib/elasticsearch-serverless/api/{enrich/stats.rb → security/get_builtin_privileges.rb} +7 -7
- data/lib/elasticsearch-serverless/api/security/get_role.rb +72 -0
- data/lib/elasticsearch-serverless/api/security/has_privileges.rb +1 -1
- data/lib/elasticsearch-serverless/api/security/invalidate_api_key.rb +3 -2
- data/lib/elasticsearch-serverless/api/security/put_role.rb +67 -0
- data/lib/elasticsearch-serverless/api/security/query_api_keys.rb +2 -2
- data/lib/elasticsearch-serverless/api/tasks/get.rb +69 -0
- data/lib/elasticsearch-serverless/api/terms_enum.rb +6 -1
- data/lib/elasticsearch-serverless/api/termvectors.rb +1 -1
- data/lib/elasticsearch-serverless/api.rb +1 -0
- data/lib/elasticsearch-serverless/version.rb +1 -1
- metadata +10 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cdef5260655fb867303a0f21bff2a4e1cd1fbdbbdf34ce476572f41d698d5f48
|
4
|
+
data.tar.gz: d6eb14791d6586ea674f7c39d1aed581cc8042aee6d73f35ec48b9369aa2930b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b1cc8e830d266068443087c17f610f3e6a16d3ef4ac23a937d32241166a0b04568f69ed55b0dda49478e78ca8beb10d78c9c893c34b2d0c0312008d3a555c37
|
7
|
+
data.tar.gz: 1ee71b1b19b311b011bc4c2a4361486303011c5e058e9bc7d3dcbbfcdb62f76d7e0f4a0a501ed6c7d2dc2bf4b091e3aec7189533e55116c970a90ab19399127c
|
@@ -22,8 +22,8 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module AsyncSearch
|
24
24
|
module Actions
|
25
|
-
#
|
26
|
-
# If the search is still running,
|
25
|
+
# Delete an async search.
|
26
|
+
# If the asynchronous search is still running, it is cancelled.
|
27
27
|
# Otherwise, the saved search results are deleted.
|
28
28
|
# If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the +cancel_task+ cluster privilege.
|
29
29
|
#
|
@@ -22,7 +22,8 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module AsyncSearch
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Get async search results.
|
26
|
+
# Retrieve the results of a previously submitted asynchronous search request.
|
26
27
|
# If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it.
|
27
28
|
#
|
28
29
|
# @option arguments [String] :id A unique identifier for the async search. (*Required*)
|
@@ -22,11 +22,13 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module AsyncSearch
|
24
24
|
module Actions
|
25
|
-
# Get async search status
|
26
|
-
#
|
25
|
+
# Get the async search status.
|
26
|
+
# Get the status of a previously submitted async search request given its identifier, without retrieving search results.
|
27
27
|
# If the Elasticsearch security features are enabled, use of this API is restricted to the +monitoring_user+ role.
|
28
28
|
#
|
29
29
|
# @option arguments [String] :id A unique identifier for the async search. (*Required*)
|
30
|
+
# @option arguments [Time] :keep_alive Specifies how long the async search needs to be available.
|
31
|
+
# Ongoing async searches and any saved search results are deleted after this period. Server default: 5d.
|
30
32
|
# @option arguments [Hash] :headers Custom HTTP headers
|
31
33
|
#
|
32
34
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html
|
@@ -51,7 +53,7 @@ module ElasticsearchServerless
|
|
51
53
|
|
52
54
|
method = ElasticsearchServerless::API::HTTP_GET
|
53
55
|
path = "_async_search/status/#{Utils.listify(_id)}"
|
54
|
-
params =
|
56
|
+
params = Utils.process_params(arguments)
|
55
57
|
|
56
58
|
ElasticsearchServerless::API::Response.new(
|
57
59
|
perform_request(method, path, params, body, headers, request_opts)
|
@@ -22,10 +22,10 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module AsyncSearch
|
24
24
|
module Actions
|
25
|
-
#
|
26
|
-
# When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field
|
27
|
-
# Warning:
|
28
|
-
# By default, Elasticsearch
|
25
|
+
# Run an async search.
|
26
|
+
# When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested.
|
27
|
+
# Warning: Asynchronous search does not support scroll or search requests that include only the suggest section.
|
28
|
+
# By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error.
|
29
29
|
# The maximum allowed size for a stored async search response can be set by changing the +search.max_async_search_response_size+ cluster level setting.
|
30
30
|
#
|
31
31
|
# @option arguments [String, Array] :index A comma-separated list of index names to search; use +_all+ or empty string to perform the operation on all indices
|
@@ -50,12 +50,10 @@ module ElasticsearchServerless
|
|
50
50
|
# @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
51
51
|
# @option arguments [Boolean] :lenient Specify whether format-based query failures (such as providing text to a numeric field) should be ignored
|
52
52
|
# @option arguments [Integer] :max_concurrent_shard_requests The number of concurrent shard requests per node this search executes concurrently. This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests
|
53
|
-
# @option arguments [String] :min_compatible_shard_node [TODO]
|
54
53
|
# @option arguments [String] :preference Specify the node or shard the operation should be performed on (default: random)
|
55
54
|
# @option arguments [Integer] :pre_filter_shard_size The default value cannot be changed, which enforces the execution of a pre-filter roundtrip to retrieve statistics from each shard so that the ones that surely don’t hold any document matching the query get skipped. Server default: 1.
|
56
55
|
# @option arguments [Boolean] :request_cache Specify if request cache should be used for this request or not, defaults to true Server default: true.
|
57
56
|
# @option arguments [String] :routing A comma-separated list of specific routing values
|
58
|
-
# @option arguments [Time] :scroll [TODO]
|
59
57
|
# @option arguments [String] :search_type Search operation type
|
60
58
|
# @option arguments [Array<String>] :stats Specific 'tag' of the request for logging and statistical purposes
|
61
59
|
# @option arguments [String, Array<String>] :stored_fields A comma-separated list of stored fields to return as part of a hit
|
@@ -68,7 +66,7 @@ module ElasticsearchServerless
|
|
68
66
|
# @option arguments [Boolean, Integer] :track_total_hits Indicate if the number of documents that match the query should be tracked. A number can also be specified, to accurately track the total hit count up to the number.
|
69
67
|
# @option arguments [Boolean] :track_scores Whether to calculate and return scores even if they are not used for sorting
|
70
68
|
# @option arguments [Boolean] :typed_keys Specify whether aggregation and suggester names should be prefixed by their respective types in the response
|
71
|
-
# @option arguments [Boolean] :rest_total_hits_as_int
|
69
|
+
# @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
|
72
70
|
# @option arguments [Boolean] :version Specify whether to return document version as part of a hit
|
73
71
|
# @option arguments [Boolean, String, Array<String>] :_source True or false to return the _source field or not, or a list of fields to return
|
74
72
|
# @option arguments [String, Array<String>] :_source_excludes A list of fields to exclude from the returned _source field
|
@@ -34,10 +34,6 @@ module ElasticsearchServerless
|
|
34
34
|
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
|
35
35
|
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
|
36
36
|
# can't be combined with any other query string option.
|
37
|
-
# @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the
|
38
|
-
# local cluster state. If +false+ the list of selected nodes are computed
|
39
|
-
# from the cluster state of the master node. In both cases the coordinating
|
40
|
-
# node will send requests for further information to each selected node.
|
41
37
|
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
|
42
38
|
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
|
43
39
|
# Sorting defaults to ascending and can be changed by setting +:asc+
|
@@ -29,15 +29,15 @@ module ElasticsearchServerless
|
|
29
29
|
# They are not intended for use by applications. For application consumption, use the get component template API.
|
30
30
|
#
|
31
31
|
# @option arguments [String] :name The name of the component template. Accepts wildcard expressions. If omitted, all component templates are returned.
|
32
|
+
# @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the
|
33
|
+
# local cluster state. If +false+ the list of selected nodes are computed
|
34
|
+
# from the cluster state of the master node. In both cases the coordinating
|
35
|
+
# node will send requests for further information to each selected node.
|
32
36
|
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
|
33
37
|
# +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text.
|
34
38
|
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
|
35
39
|
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
|
36
40
|
# can't be combined with any other query string option.
|
37
|
-
# @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the
|
38
|
-
# local cluster state. If +false+ the list of selected nodes are computed
|
39
|
-
# from the cluster state of the master node. In both cases the coordinating
|
40
|
-
# node will send requests for further information to each selected node.
|
41
41
|
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
|
42
42
|
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
|
43
43
|
# Sorting defaults to ascending and can be changed by setting +:asc+
|
@@ -35,10 +35,6 @@ module ElasticsearchServerless
|
|
35
35
|
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
|
36
36
|
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
|
37
37
|
# can't be combined with any other query string option.
|
38
|
-
# @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the
|
39
|
-
# local cluster state. If +false+ the list of selected nodes are computed
|
40
|
-
# from the cluster state of the master node. In both cases the coordinating
|
41
|
-
# node will send requests for further information to each selected node.
|
42
38
|
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
|
43
39
|
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
|
44
40
|
# Sorting defaults to ascending and can be changed by setting +:asc+
|
@@ -30,10 +30,6 @@ module ElasticsearchServerless
|
|
30
30
|
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
|
31
31
|
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
|
32
32
|
# can't be combined with any other query string option.
|
33
|
-
# @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the
|
34
|
-
# local cluster state. If +false+ the list of selected nodes are computed
|
35
|
-
# from the cluster state of the master node. In both cases the coordinating
|
36
|
-
# node will send requests for further information to each selected node.
|
37
33
|
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
|
38
34
|
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
|
39
35
|
# Sorting defaults to ascending and can be changed by setting +:asc+
|
@@ -48,10 +48,6 @@ module ElasticsearchServerless
|
|
48
48
|
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
|
49
49
|
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
|
50
50
|
# can't be combined with any other query string option.
|
51
|
-
# @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the
|
52
|
-
# local cluster state. If +false+ the list of selected nodes are computed
|
53
|
-
# from the cluster state of the master node. In both cases the coordinating
|
54
|
-
# node will send requests for further information to each selected node.
|
55
51
|
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
|
56
52
|
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
|
57
53
|
# Sorting defaults to ascending and can be changed by setting +:asc+
|
@@ -40,10 +40,6 @@ module ElasticsearchServerless
|
|
40
40
|
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
|
41
41
|
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
|
42
42
|
# can't be combined with any other query string option.
|
43
|
-
# @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the
|
44
|
-
# local cluster state. If +false+ the list of selected nodes are computed
|
45
|
-
# from the cluster state of the master node. In both cases the coordinating
|
46
|
-
# node will send requests for further information to each selected node.
|
47
43
|
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
|
48
44
|
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
|
49
45
|
# Sorting defaults to ascending and can be changed by setting +:asc+
|
@@ -47,10 +47,6 @@ module ElasticsearchServerless
|
|
47
47
|
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
|
48
48
|
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
|
49
49
|
# can't be combined with any other query string option.
|
50
|
-
# @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the
|
51
|
-
# local cluster state. If +false+ the list of selected nodes are computed
|
52
|
-
# from the cluster state of the master node. In both cases the coordinating
|
53
|
-
# node will send requests for further information to each selected node.
|
54
50
|
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
|
55
51
|
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
|
56
52
|
# Sorting defaults to ascending and can be changed by setting +:asc+
|
@@ -48,10 +48,6 @@ module ElasticsearchServerless
|
|
48
48
|
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
|
49
49
|
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
|
50
50
|
# can't be combined with any other query string option.
|
51
|
-
# @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the
|
52
|
-
# local cluster state. If +false+ the list of selected nodes are computed
|
53
|
-
# from the cluster state of the master node. In both cases the coordinating
|
54
|
-
# node will send requests for further information to each selected node.
|
55
51
|
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
|
56
52
|
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
|
57
53
|
# Sorting defaults to ascending and can be changed by setting +:asc+
|
@@ -42,10 +42,6 @@ module ElasticsearchServerless
|
|
42
42
|
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
|
43
43
|
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
|
44
44
|
# can't be combined with any other query string option.
|
45
|
-
# @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the
|
46
|
-
# local cluster state. If +false+ the list of selected nodes are computed
|
47
|
-
# from the cluster state of the master node. In both cases the coordinating
|
48
|
-
# node will send requests for further information to each selected node.
|
49
45
|
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
|
50
46
|
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
|
51
47
|
# Sorting defaults to ascending and can be changed by setting +:asc+
|
@@ -43,10 +43,6 @@ module ElasticsearchServerless
|
|
43
43
|
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
|
44
44
|
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
|
45
45
|
# can't be combined with any other query string option.
|
46
|
-
# @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the
|
47
|
-
# local cluster state. If +false+ the list of selected nodes are computed
|
48
|
-
# from the cluster state of the master node. In both cases the coordinating
|
49
|
-
# node will send requests for further information to each selected node.
|
50
46
|
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
|
51
47
|
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
|
52
48
|
# Sorting defaults to ascending and can be changed by setting +:asc+
|
@@ -21,7 +21,8 @@
|
|
21
21
|
module ElasticsearchServerless
|
22
22
|
module API
|
23
23
|
module Actions
|
24
|
-
#
|
24
|
+
# Clear a scrolling search.
|
25
|
+
# Clear the search context and results for a scrolling search.
|
25
26
|
#
|
26
27
|
# @option arguments [String, Array] :scroll_id Comma-separated list of scroll IDs to clear.
|
27
28
|
# To clear all scroll IDs, use +_all+.
|
@@ -38,12 +39,6 @@ module ElasticsearchServerless
|
|
38
39
|
def clear_scroll(arguments = {})
|
39
40
|
request_opts = { endpoint: arguments[:endpoint] || "clear_scroll" }
|
40
41
|
|
41
|
-
defined_params = [:scroll_id].inject({}) do |set_variables, variable|
|
42
|
-
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
43
|
-
set_variables
|
44
|
-
end
|
45
|
-
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
46
|
-
|
47
42
|
arguments = arguments.clone
|
48
43
|
headers = arguments.delete(:headers) || {}
|
49
44
|
|
@@ -52,11 +47,7 @@ module ElasticsearchServerless
|
|
52
47
|
_scroll_id = arguments.delete(:scroll_id)
|
53
48
|
|
54
49
|
method = ElasticsearchServerless::API::HTTP_DELETE
|
55
|
-
path =
|
56
|
-
"_search/scroll/#{Utils.listify(_scroll_id)}"
|
57
|
-
else
|
58
|
-
"_search/scroll"
|
59
|
-
end
|
50
|
+
path = "_search/scroll"
|
60
51
|
params = Utils.process_params(arguments)
|
61
52
|
|
62
53
|
if Array(arguments[:ignore]).include?(404)
|
@@ -21,7 +21,11 @@
|
|
21
21
|
module ElasticsearchServerless
|
22
22
|
module API
|
23
23
|
module Actions
|
24
|
-
#
|
24
|
+
# Close a point in time.
|
25
|
+
# A point in time must be opened explicitly before being used in search requests.
|
26
|
+
# The +keep_alive+ parameter tells Elasticsearch how long it should persist.
|
27
|
+
# A point in time is automatically closed when the +keep_alive+ period has elapsed.
|
28
|
+
# However, keeping points in time has a cost; close them as soon as they are no longer required for search requests.
|
25
29
|
#
|
26
30
|
# @option arguments [Hash] :headers Custom HTTP headers
|
27
31
|
# @option arguments [Hash] :body request body
|
@@ -22,7 +22,8 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Connector
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Check in a connector.
|
26
|
+
# Update the +last_seen+ field in the connector and set it to the current timestamp.
|
26
27
|
# This functionality is Experimental and may be changed or removed
|
27
28
|
# completely in a future release. Elastic will take a best effort approach
|
28
29
|
# to fix any issues, but experimental features are not subject to the
|
@@ -22,7 +22,11 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Connector
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Delete a connector.
|
26
|
+
# Removes a connector and associated sync jobs.
|
27
|
+
# This is a destructive action that is not recoverable.
|
28
|
+
# NOTE: This action doesn’t delete any API keys, ingest pipelines, or data indices associated with the connector.
|
29
|
+
# These need to be removed manually.
|
26
30
|
# This functionality is in Beta and is subject to change. The design and
|
27
31
|
# code is less mature than official GA features and is being provided
|
28
32
|
# as-is with no warranties. Beta features are not subject to the support
|
@@ -22,7 +22,8 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Connector
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Get a connector.
|
26
|
+
# Get the details about a connector.
|
26
27
|
# This functionality is in Beta and is subject to change. The design and
|
27
28
|
# code is less mature than official GA features and is being provided
|
28
29
|
# as-is with no warranties. Beta features are not subject to the support
|
@@ -22,7 +22,8 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Connector
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Get all connectors.
|
26
|
+
# Get information about all connectors.
|
26
27
|
# This functionality is in Beta and is subject to change. The design and
|
27
28
|
# code is less mature than official GA features and is being provided
|
28
29
|
# as-is with no warranties. Beta features are not subject to the support
|
@@ -22,7 +22,10 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Connector
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Create a connector.
|
26
|
+
# Connectors are Elasticsearch integrations that bring content from third-party data sources, which can be deployed on Elastic Cloud or hosted on your own infrastructure.
|
27
|
+
# Elastic managed connectors (Native connectors) are a managed service on Elastic Cloud.
|
28
|
+
# Self-managed connectors (Connector clients) are self-managed on your infrastructure.
|
26
29
|
# This functionality is in Beta and is subject to change. The design and
|
27
30
|
# code is less mature than official GA features and is being provided
|
28
31
|
# as-is with no warranties. Beta features are not subject to the support
|
@@ -22,7 +22,7 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Connector
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Create or update a connector.
|
26
26
|
# This functionality is in Beta and is subject to change. The design and
|
27
27
|
# code is less mature than official GA features and is being provided
|
28
28
|
# as-is with no warranties. Beta features are not subject to the support
|
@@ -22,7 +22,9 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Connector
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Cancel a connector sync job.
|
26
|
+
# Cancel a connector sync job, which sets the status to cancelling and updates +cancellation_requested_at+ to the current time.
|
27
|
+
# The connector service is then responsible for setting the status of connector sync jobs to cancelled.
|
26
28
|
# This functionality is in Beta and is subject to change. The design and
|
27
29
|
# code is less mature than official GA features and is being provided
|
28
30
|
# as-is with no warranties. Beta features are not subject to the support
|
@@ -22,7 +22,9 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Connector
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Delete a connector sync job.
|
26
|
+
# Remove a connector sync job and its associated data.
|
27
|
+
# This is a destructive action that is not recoverable.
|
26
28
|
# This functionality is in Beta and is subject to change. The design and
|
27
29
|
# code is less mature than official GA features and is being provided
|
28
30
|
# as-is with no warranties. Beta features are not subject to the support
|
@@ -22,7 +22,7 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Connector
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Get a connector sync job.
|
26
26
|
# This functionality is in Beta and is subject to change. The design and
|
27
27
|
# code is less mature than official GA features and is being provided
|
28
28
|
# as-is with no warranties. Beta features are not subject to the support
|
@@ -22,7 +22,8 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Connector
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Get all connector sync jobs.
|
26
|
+
# Get information about all stored connector sync jobs listed by their creation date in ascending order.
|
26
27
|
# This functionality is in Beta and is subject to change. The design and
|
27
28
|
# code is less mature than official GA features and is being provided
|
28
29
|
# as-is with no warranties. Beta features are not subject to the support
|
@@ -22,7 +22,8 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Connector
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Create a connector sync job.
|
26
|
+
# Create a connector sync job document in the internal index and initialize its counters and timestamps with default values.
|
26
27
|
# This functionality is in Beta and is subject to change. The design and
|
27
28
|
# code is less mature than official GA features and is being provided
|
28
29
|
# as-is with no warranties. Beta features are not subject to the support
|
@@ -22,6 +22,7 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Connector
|
24
24
|
module Actions
|
25
|
+
# Activate the connector draft filter.
|
25
26
|
# Activates the valid draft filtering for a connector.
|
26
27
|
# This functionality is Experimental and may be changed or removed
|
27
28
|
# completely in a future release. Elastic will take a best effort approach
|
@@ -22,7 +22,11 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Connector
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Update the connector API key ID.
|
26
|
+
# Update the +api_key_id+ and +api_key_secret_id+ fields of a connector.
|
27
|
+
# You can specify the ID of the API key used for authorization and the ID of the connector secret where the API key is stored.
|
28
|
+
# The connector secret ID is required only for Elastic managed (native) connectors.
|
29
|
+
# Self-managed connectors (connector clients) do not use this field.
|
26
30
|
# This functionality is in Beta and is subject to change. The design and
|
27
31
|
# code is less mature than official GA features and is being provided
|
28
32
|
# as-is with no warranties. Beta features are not subject to the support
|
@@ -22,7 +22,8 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Connector
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Update the connector configuration.
|
26
|
+
# Update the configuration field in the connector document.
|
26
27
|
# This functionality is in Beta and is subject to change. The design and
|
27
28
|
# code is less mature than official GA features and is being provided
|
28
29
|
# as-is with no warranties. Beta features are not subject to the support
|
@@ -22,7 +22,10 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Connector
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Update the connector error field.
|
26
|
+
# Set the error field for the connector.
|
27
|
+
# If the error provided in the request body is non-null, the connector’s status is updated to error.
|
28
|
+
# Otherwise, if the error is reset to null, the connector status is updated to connected.
|
26
29
|
# This functionality is Experimental and may be changed or removed
|
27
30
|
# completely in a future release. Elastic will take a best effort approach
|
28
31
|
# to fix any issues, but experimental features are not subject to the
|
@@ -22,7 +22,10 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Connector
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Update the connector filtering.
|
26
|
+
# Update the draft filtering configuration of a connector and marks the draft validation state as edited.
|
27
|
+
# The filtering draft is activated once validated by the running Elastic connector service.
|
28
|
+
# The filtering property is used to configure sync rules (both basic and advanced) for a connector.
|
26
29
|
# This functionality is in Beta and is subject to change. The design and
|
27
30
|
# code is less mature than official GA features and is being provided
|
28
31
|
# as-is with no warranties. Beta features are not subject to the support
|
@@ -22,7 +22,8 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Connector
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Update the connector draft filtering validation.
|
26
|
+
# Update the draft filtering validation info for a connector.
|
26
27
|
# This functionality is Experimental and may be changed or removed
|
27
28
|
# completely in a future release. Elastic will take a best effort approach
|
28
29
|
# to fix any issues, but experimental features are not subject to the
|
@@ -22,7 +22,8 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Connector
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Update the connector index name.
|
26
|
+
# Update the +index_name+ field of a connector, specifying the index where the data ingested by the connector is stored.
|
26
27
|
# This functionality is in Beta and is subject to change. The design and
|
27
28
|
# code is less mature than official GA features and is being provided
|
28
29
|
# as-is with no warranties. Beta features are not subject to the support
|
@@ -22,7 +22,7 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Connector
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Update the connector name and description.
|
26
26
|
# This functionality is in Beta and is subject to change. The design and
|
27
27
|
# code is less mature than official GA features and is being provided
|
28
28
|
# as-is with no warranties. Beta features are not subject to the support
|
@@ -22,7 +22,7 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Connector
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Update the connector is_native flag.
|
26
26
|
# This functionality is in Beta and is subject to change. The design and
|
27
27
|
# code is less mature than official GA features and is being provided
|
28
28
|
# as-is with no warranties. Beta features are not subject to the support
|
@@ -22,7 +22,8 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Connector
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Update the connector pipeline.
|
26
|
+
# When you create a new connector, the configuration of an ingest pipeline is populated with default settings.
|
26
27
|
# This functionality is in Beta and is subject to change. The design and
|
27
28
|
# code is less mature than official GA features and is being provided
|
28
29
|
# as-is with no warranties. Beta features are not subject to the support
|
@@ -22,7 +22,7 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Connector
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Update the connector scheduling.
|
26
26
|
# This functionality is in Beta and is subject to change. The design and
|
27
27
|
# code is less mature than official GA features and is being provided
|
28
28
|
# as-is with no warranties. Beta features are not subject to the support
|
@@ -22,7 +22,7 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Connector
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Update the connector service type.
|
26
26
|
# This functionality is in Beta and is subject to change. The design and
|
27
27
|
# code is less mature than official GA features and is being provided
|
28
28
|
# as-is with no warranties. Beta features are not subject to the support
|
@@ -22,7 +22,7 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Connector
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Update the connector status.
|
26
26
|
# This functionality is Experimental and may be changed or removed
|
27
27
|
# completely in a future release. Elastic will take a best effort approach
|
28
28
|
# to fix any issues, but experimental features are not subject to the
|
@@ -21,9 +21,11 @@
|
|
21
21
|
module ElasticsearchServerless
|
22
22
|
module API
|
23
23
|
module Actions
|
24
|
-
#
|
25
|
-
#
|
26
|
-
#
|
24
|
+
# Get the field capabilities.
|
25
|
+
# Get information about the capabilities of fields among multiple indices.
|
26
|
+
# For data streams, the API returns field capabilities among the stream’s backing indices.
|
27
|
+
# It returns runtime fields like any other field.
|
28
|
+
# For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the +keyword+ family.
|
27
29
|
#
|
28
30
|
# @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (*). To target all data streams and indices, omit this parameter or use * or _all.
|
29
31
|
# @option arguments [Boolean] :allow_no_indices If false, the request returns an error if any wildcard expression, index alias,
|
@@ -22,7 +22,8 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Indices
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Get tokens from text analysis.
|
26
|
+
# The analyze API performs {https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis.html analysis} on a text string and returns the resulting tokens.
|
26
27
|
#
|
27
28
|
# @option arguments [String] :index Index used to derive the analyzer.
|
28
29
|
# If specified, the +analyzer+ or field parameter overrides this value.
|
@@ -35,7 +35,6 @@ module ElasticsearchServerless
|
|
35
35
|
# Supports comma-separated values, such as +open,hidden+.
|
36
36
|
# Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open.
|
37
37
|
# @option arguments [Boolean] :ignore_unavailable If +false+, requests that include a missing data stream or index in the target indices or data streams return an error.
|
38
|
-
# @option arguments [Boolean] :local If +true+, the request retrieves information from the local node only.
|
39
38
|
# @option arguments [Hash] :headers Custom HTTP headers
|
40
39
|
#
|
41
40
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html
|
@@ -38,7 +38,6 @@ module ElasticsearchServerless
|
|
38
38
|
# Supports comma-separated values, such as +open,hidden+.
|
39
39
|
# Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open.
|
40
40
|
# @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index.
|
41
|
-
# @option arguments [Boolean] :local If +true+, the request retrieves information from the local node only.
|
42
41
|
# @option arguments [Hash] :headers Custom HTTP headers
|
43
42
|
#
|
44
43
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html
|