Skip to content

Commit

Permalink
Temporarily remove wait_for_completion (#61677) (#61819)
Browse files Browse the repository at this point in the history
Co-authored-by: Elastic Machine <[email protected]>

Co-authored-by: Lukas Olson <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
3 people authored Mar 30, 2020
1 parent 899c751 commit 57d4dc4
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 57d4dc4

Please sign in to comment.