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