Skip to content

Commit a76da99

Browse files
committed
[API] Adds keep_alive boolean to async_search.status
Adds jop_type List to connector_sync_job.list
1 parent 98673d2 commit a76da99

File tree

2 files changed

+3
-1
lines changed
  • elasticsearch-api/lib/elasticsearch/api/actions

2 files changed

+3
-1
lines changed

elasticsearch-api/lib/elasticsearch/api/actions/async_search/status.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ module Actions
2525
# Retrieves the status of a previously submitted async search request given its ID.
2626
#
2727
# @option arguments [String] :id The async search ID
28+
# @option arguments [Time] :keep_alive Specify the time interval in which the results (partial or final) for this search will be available
2829
# @option arguments [Hash] :headers Custom HTTP headers
2930
#
3031
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html
@@ -49,7 +50,7 @@ def status(arguments = {})
4950

5051
method = Elasticsearch::API::HTTP_GET
5152
path = "_async_search/status/#{Utils.__listify(_id)}"
52-
params = {}
53+
params = Utils.process_params(arguments)
5354

5455
Elasticsearch::API::Response.new(
5556
perform_request(method, path, params, body, headers, request_opts)

elasticsearch-api/lib/elasticsearch/api/actions/connector_sync_job/list.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ module Actions
3232
# @option arguments [Integer] :size specifies a max number of results to get (default: 100)
3333
# @option arguments [String] :status Sync job status, which sync jobs are fetched for
3434
# @option arguments [String] :connector_id Id of the connector to fetch the sync jobs for
35+
# @option arguments [List] :job_type A comma-separated list of job types
3536
# @option arguments [Hash] :headers Custom HTTP headers
3637
#
3738
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/list-connector-sync-jobs-api.html

0 commit comments

Comments
 (0)