From 51f52bc7adbbfb994907437fdf17c58720c690d5 Mon Sep 17 00:00:00 2001 From: Matthias Wilhelm Date: Wed, 22 Apr 2020 07:59:42 +0200 Subject: [PATCH] undo wait for completion timeout setting too 5s --- .../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 9bdd029d79c3a..6b329bccab4a7 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({ waitForCompletionTimeout: '5s', ...queryParams }); + const query = toSnakeCase({ waitForCompletionTimeout: '1s', ...queryParams }); const { response, id } = (await caller( 'transport.request',