Skip to content

Commit

Permalink
Temporarily remove wait_for_completion (elastic#61677)
Browse files Browse the repository at this point in the history
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
2 people authored and Tyler Smalley committed Mar 30, 2020
1 parent f669937 commit 4341444
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const enhancedEsSearchStrategyProvider: TSearchStrategyProvider<typeof ES
};
request.params = params;

const asyncOptions: IAsyncSearchOptions = { pollInterval: 0, ...options };
const asyncOptions: IAsyncSearchOptions = { pollInterval: 1000, ...options };

return asyncSearch(
{ ...request, serverStrategy: ES_SEARCH_STRATEGY },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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({ /* waitForCompletion: '1s', */ ...params });

const { response: rawResponse, id } = (await caller(
'transport.request',
Expand Down

0 comments on commit 4341444

Please sign in to comment.