From 3c4615dd853a97a93462c3257b162d357e4f00a6 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Fri, 24 Jan 2025 16:31:30 +0400 Subject: [PATCH] Add back keep_alive to async_search.submit rest-api-spec (#120781) --- docs/changelog/120781.yaml | 5 +++++ .../resources/rest-api-spec/api/async_search.submit.json | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 docs/changelog/120781.yaml diff --git a/docs/changelog/120781.yaml b/docs/changelog/120781.yaml new file mode 100644 index 0000000000000..67c7d90528d6e --- /dev/null +++ b/docs/changelog/120781.yaml @@ -0,0 +1,5 @@ +pr: 120781 +summary: Add back `keep_alive` to `async_search.submit` rest-api-spec +area: Search +type: bug +issues: [] diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/async_search.submit.json b/rest-api-spec/src/main/resources/rest-api-spec/api/async_search.submit.json index 3de0dec85f547..8ae2fff22281c 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/async_search.submit.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/async_search.submit.json @@ -43,6 +43,11 @@ "description":"Control whether the response should be stored in the cluster if it completed within the provided [wait_for_completion] time (default: false)", "default":false }, + "keep_alive": { + "type": "time", + "description": "Update the time interval in which the results (partial or final) for this search will be available", + "default": "5d" + }, "batched_reduce_size":{ "type":"number", "description":"The number of shard results that should be reduced at once on the coordinating node. This value should be used as the granularity at which progress results will be made available.",