From c9767eaaaa6fd50ddd5ea972320c67116b9c6459 Mon Sep 17 00:00:00 2001 From: Lukas Olson Date: Mon, 30 Mar 2020 18:13:21 -0700 Subject: [PATCH] Rename async search params (#61641) Co-authored-by: Elastic Machine --- .../plugins/data_enhanced/server/search/es_search_strategy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/data_enhanced/server/search/es_search_strategy.ts b/x-pack/plugins/data_enhanced/server/search/es_search_strategy.ts index 95ffd7b06df21..57d31553382bf 100644 --- a/x-pack/plugins/data_enhanced/server/search/es_search_strategy.ts +++ b/x-pack/plugins/data_enhanced/server/search/es_search_strategy.ts @@ -63,7 +63,7 @@ async function asyncSearch( const path = encodeURI(request.id ? `_async_search/${request.id}` : `${index}/_async_search`); // Wait up to 1s for the response to return - const query = toSnakeCase({ /* waitForCompletion: '1s', */ ...params }); + const query = toSnakeCase({ waitForCompletionTimeout: '1s', ...params }); const { response: rawResponse, id } = (await caller( 'transport.request',