diff --git a/CHANGELOG.md b/CHANGELOG.md index 7659a9ce0..cd3271773 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,10 +22,10 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ### Changed - Make handling of long numerals an option that is disabled by default ([#557](https://github.com/opensearch-project/opensearch-js/pull/557)) - Add `enableLongNumeralSupport` to the type definition for `ClientOptions` ([#598](https://github.com/opensearch-project/opensearch-js/pull/598)) -- Corrected documentation for bulk.md ([#XXX]) ### Deprecated ### Removed ### Fixed +- Corrected documentation for `bulk.md` ([#620](https://github.com/opensearch-project/opensearch-js/pull/620)) ### Security ## [2.3.0] diff --git a/guides/bulk.md b/guides/bulk.md index 26a7c8981..5471d74b3 100644 --- a/guides/bulk.md +++ b/guides/bulk.md @@ -182,5 +182,9 @@ client.bulk({ To clean up the resources created in this guide, delete the `movies` and `books` indices: ```javascript -client.indices.delete({ index: [movies, books] }); +client.indices.delete({ + index: [movies, books] +}).then((response) => { + console.log(response); +}); ``` \ No newline at end of file