Skip to content

Commit

Permalink
[7.7] Rename async search params (#61641) (#61917)
Browse files Browse the repository at this point in the history
* Rename async search params (#61641)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

* Remove polling delay

* Fix merge issue

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Liza Katz <lizka.k@gmail.com>
  • Loading branch information
3 people authored Apr 1, 2020
1 parent 878a69d commit 5e73654
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 5e73654

Please sign in to comment.