From bf6a3427b0b84b3aa0054bece0907e09afec99d5 Mon Sep 17 00:00:00 2001 From: Liza K Date: Mon, 7 Sep 2020 16:23:59 +0300 Subject: [PATCH] Rename to queryOptions --- .../plugins/data_enhanced/server/search/es_search_strategy.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 493f5da813151..420b15cd706d0 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 @@ -100,7 +100,7 @@ async function asyncSearch( keepAlive: '1m', // Extend the TTL for this search request by one minute }; - const querystring = toSnakeCase({ + const queryOptions = toSnakeCase({ ...asyncOptions, ...(batchedReduceSize && { batchedReduceSize }), ...queryParams, @@ -110,7 +110,7 @@ async function asyncSearch( if (!request.id) { esResponse = await client.asyncSearch.submit({ body, - ...querystring, + ...queryOptions, }); } else { esResponse = await client.asyncSearch.get({