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',