From 5e73654858824e4d6b53c8cd1c9f1c6e6e09aaf5 Mon Sep 17 00:00:00 2001 From: Lukas Olson Date: Wed, 1 Apr 2020 15:26:55 -0700 Subject: [PATCH] [7.7] Rename async search params (#61641) (#61917) * Rename async search params (#61641) Co-authored-by: Elastic Machine * Remove polling delay * Fix merge issue Co-authored-by: Elastic Machine Co-authored-by: Liza Katz --- .../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 77fdf2b3ea2f7..301f184af7d81 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 @@ -69,7 +69,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', */ ...queryParams }); + const query = toSnakeCase({ waitForCompletionTimeout: '1s', ...queryParams }); const { response, id } = (await caller( 'transport.request',