From 9e9f2a7ff2963e696adcc2987bdd03f10aa3957a Mon Sep 17 00:00:00 2001 From: delvedor Date: Mon, 15 Jun 2020 09:26:41 +0200 Subject: [PATCH] Fixed code snippet --- docs/helpers.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/helpers.asciidoc b/docs/helpers.asciidoc index 67cb1c94e..40df9d195 100644 --- a/docs/helpers.asciidoc +++ b/docs/helpers.asciidoc @@ -439,7 +439,7 @@ It handles automatically the `429` error and uses the client's `maxRetries` opti [source,js] ---- -const scrollSearch = await client.helpers.scrollSearch({ +const scrollSearch = client.helpers.scrollSearch({ index: 'stackoverflow', body: { query: { @@ -488,7 +488,7 @@ For improving the performances, this helper automatically adds `filter_path=hits [source,js] ---- -const scrollSearch = await client.helpers.scrollDocuments({ +const scrollSearch = client.helpers.scrollDocuments({ index: 'stackoverflow', body: { query: {