Repository: opensearch-project/opensearch-go
Pull request #530 (2024-04-16 13:16:14)

Preparing for release, 4.0.0
### Description
Preparing for release, 4.0.0. There are new features and braking changes, so incremented the first number.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check [here](https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin).


codecov[bot]: ## [Codecov](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/530?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) Report
All modified and coverable lines are covered by tests :white_check_mark:
> Project coverage is 81.64%. Comparing base [(`06a6dc8`)](https://app.codecov.io/gh/opensearch-project/opensearch-go/commit/06a6dc8cbaeb8d1e3657487661edd4900e4f31df?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) to head [(`f50459f`)](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/530?dropdown=coverage&src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project).
> Report is 13 commits behind head on main.

<details><summary>Additional details and impacted files</summary>


```diff
@@             Coverage Diff             @@
##             main     #530       +/-   ##
===========================================
+ Coverage   57.29%   81.64%   +24.34%     
===========================================
  Files         315       14      -301     
  Lines        9823     1329     -8494     
===========================================
- Hits         5628     1085     -4543     
+ Misses       2902      165     -2737     
+ Partials     1293       79     -1214     
```

| [Flag](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/530/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) | Coverage Δ | |
|---|---|---|
| [integration](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/530/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) | `?` | |
| [unit](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/530/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) | `81.64% <ø> (+68.79%)` | :arrow_up: |

Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project#carryforward-flags-in-the-pull-request-comment) to find out more.

| [Files](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/530?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) | Coverage Δ | |
|---|---|---|
| [opensearch.go](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/530?src=pr&el=tree&filepath=opensearch.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project#diff-b3BlbnNlYXJjaC5nbw==) | `91.07% <ø> (+15.44%)` | :arrow_up: |
| [opensearchtransport/opensearchtransport.go](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/530?src=pr&el=tree&filepath=opensearchtransport%2Fopensearchtransport.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project#diff-b3BlbnNlYXJjaHRyYW5zcG9ydC9vcGVuc2VhcmNodHJhbnNwb3J0Lmdv) | `86.57% <ø> (+1.41%)` | :arrow_up: |
| [opensearchutil/bulk\_indexer.go](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/530?src=pr&el=tree&filepath=opensearchutil%2Fbulk_indexer.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project#diff-b3BlbnNlYXJjaHV0aWwvYnVsa19pbmRleGVyLmdv) | `75.53% <ø> (+1.72%)` | :arrow_up: |
| [signer/awsv2/sdkv2signer.go](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/530?src=pr&el=tree&filepath=signer%2Fawsv2%2Fsdkv2signer.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project#diff-c2lnbmVyL2F3c3YyL3Nka3Yyc2lnbmVyLmdv) | `77.77% <ø> (+3.30%)` | :arrow_up: |

... and [310 files with indirect coverage changes](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/530/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project)

</details>

Patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b1d3437..7e1cf35 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,7 +2,7 @@
 
 Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
 
-## [Unreleased]
+## [4.0.0]
 
 ### Added
 - Adds GlobalIOUsage struct for nodes stats ([#506](https://github.com/opensearch-project/opensearch-go/pull/506))
@@ -14,7 +14,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
 - Adds security plugin ([#507](https://github.com/opensearch-project/opensearch-go/pull/507))
 - Adds security settings to container for security testing ([#507](https://github.com/opensearch-project/opensearch-go/pull/507))
 - Adds cluster.get-certs to copy admin certs out of the container ([#507](https://github.com/opensearch-project/opensearch-go/pull/507))
-- Adds the `Fields` field containing stored fields to the `DocumentGetResp` struct (#526)[https://github.com/opensearch-project/opensearch-go/pull/526]
+- Adds the `Fields` field containing stored fields to the `DocumentGetResp` struct ([#526](https://github.com/opensearch-project/opensearch-go/pull/526))
 - Adds ism plugin ([#524](https://github.com/opensearch-project/opensearch-go/pull/524))
 
 ### Changed
@@ -193,7 +193,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
 - Bumps `github.com/stretchr/testify` from 1.8.0 to 1.8.1
 - Bumps `github.com/aws/aws-sdk-go` from 1.44.45 to 1.44.132
 
-[Unreleased]: https://github.com/opensearch-project/opensearch-go/compare/v3.1.0...HEAD
+[4.0.0]: https://github.com/opensearch-project/opensearch-go/compare/v3.1.0...v4.0.0
 [3.1.0]: https://github.com/opensearch-project/opensearch-go/compare/v3.0.0...v3.1.0
 [3.0.0]: https://github.com/opensearch-project/opensearch-go/compare/v2.3.0...v3.0.0
 [2.3.0]: https://github.com/opensearch-project/opensearch-go/compare/v2.2.0...v2.3.0
diff --git a/README.md b/README.md
index a8fdc81..5824b12 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-[![Go Reference](https://pkg.go.dev/badge/github.com/opensearch-project/opensearch-go.svg)](https://pkg.go.dev/github.com/opensearch-project/opensearch-go/v3) [![Build](https://github.com/opensearch-project/opensearch-go/actions/workflows/lint.yml/badge.svg)](https://github.com/opensearch-project/opensearch-go/actions/workflows/lint.yml) [![Unit](https://github.com/opensearch-project/opensearch-go/actions/workflows/test-unit.yml/badge.svg)](https://github.com/opensearch-project/opensearch-go/actions/workflows/test-unit.yml) [![Integration](https://github.com/opensearch-project/opensearch-go/actions/workflows/test-integration.yml/badge.svg)](https://github.com/opensearch-project/opensearch-go/actions/workflows/test-integration.yml) [![codecov](https://codecov.io/gh/opensearch-project/opensearch-go/branch/main/graph/badge.svg?token=MI9g3KYHVx)](https://codecov.io/gh/opensearch-project/opensearch-go) [![Chat](https://img.shields.io/badge/chat-on%20forums-blue)](https://discuss.opendistrocommunity.dev/c/clients/) ![PRs welcome!](https://img.shields.io/badge/PRs-welcome!-success)
+[![Go Reference](https://pkg.go.dev/badge/github.com/opensearch-project/opensearch-go.svg)](https://pkg.go.dev/github.com/opensearch-project/opensearch-go/v4) [![Build](https://github.com/opensearch-project/opensearch-go/actions/workflows/lint.yml/badge.svg)](https://github.com/opensearch-project/opensearch-go/actions/workflows/lint.yml) [![Unit](https://github.com/opensearch-project/opensearch-go/actions/workflows/test-unit.yml/badge.svg)](https://github.com/opensearch-project/opensearch-go/actions/workflows/test-unit.yml) [![Integration](https://github.com/opensearch-project/opensearch-go/actions/workflows/test-integration.yml/badge.svg)](https://github.com/opensearch-project/opensearch-go/actions/workflows/test-integration.yml) [![codecov](https://codecov.io/gh/opensearch-project/opensearch-go/branch/main/graph/badge.svg?token=MI9g3KYHVx)](https://codecov.io/gh/opensearch-project/opensearch-go) [![Chat](https://img.shields.io/badge/chat-on%20forums-blue)](https://discuss.opendistrocommunity.dev/c/clients/) ![PRs welcome!](https://img.shields.io/badge/PRs-welcome!-success)
 
 ![OpenSearch logo](OpenSearch.svg)
 
@@ -20,7 +20,7 @@ OpenSearch Go Client
 - [Developer Guide](DEVELOPER_GUIDE.md)
 - [User Guide](USER_GUIDE.md)
 - [Documentation](https://opensearch.org/docs/latest/clients/go/)
-- [API Documentation](https://pkg.go.dev/github.com/opensearch-project/opensearch-go/v3)
+- [API Documentation](https://pkg.go.dev/github.com/opensearch-project/opensearch-go/v4)
 - Need help? Try [Forums](https://discuss.opendistrocommunity.dev/c/clients/)
 - [Project Principles](https://opensearch.org/#principles)
 - [Contributing to OpenSearch](CONTRIBUTING.md)
diff --git a/RELEASING.md b/RELEASING.md
index 174e781..2e7d747 100644
--- a/RELEASING.md
+++ b/RELEASING.md
@@ -34,7 +34,7 @@ Repositories create consistent release labels, such as `v1.0.0`, `v1.1.0` and `v
 The release process is standard across repositories in this org and is run by a release manager volunteering from amongst [MAINTAINERS](MAINTAINERS.md).
 
 1. Ensure that the version in [version.go](internal/version/version.go) is correct for the next release. 
-2. For major version releases, ensure that all references are up-to-date, e.g. `github.com/opensearch-project/opensearch-go/v3`, see [opensearch-go#444](https://github.com/opensearch-project/opensearch-go/pull/444).
+2. For major version releases, ensure that all references are up-to-date, e.g. `github.com/opensearch-project/opensearch-go/v4`, see [opensearch-go#444](https://github.com/opensearch-project/opensearch-go/pull/444).
 3. Edit the [CHANGELOG](CHANGELOG.md) and replace the `Unreleased` section with the version about to be released.
 4. Add a comparison link to the new version at the bottom of the [CHANGELOG](CHANGELOG.md).
 5. Create a pull request with the changes into `main`, e.g. [opensearch-go#443](https://github.com/opensearch-project/opensearch-go/pull/443).
@@ -57,4 +57,4 @@ The release process is standard across repositories in this org and is run by a
     ### Security
 
     ### Dependencies
-    ```
\ No newline at end of file
+    ```
diff --git a/USER_GUIDE.md b/USER_GUIDE.md
index f0cbb4f..012ccc9 100644
--- a/USER_GUIDE.md
+++ b/USER_GUIDE.md
@@ -23,9 +23,9 @@ import (
 	"os"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchutil"
+	"github.com/opensearch-project/opensearch-go/v4"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchutil"
 )
 
 const IndexName = "go-test-index1"
@@ -227,10 +227,10 @@ import (
 	"os"
 
 	"github.com/aws/aws-sdk-go/aws/session"
-	requestsigner "github.com/opensearch-project/opensearch-go/v3/signer/aws"
+	requestsigner "github.com/opensearch-project/opensearch-go/v4/signer/aws"
 
-	"github.com/opensearch-project/opensearch-go/v3"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
+	"github.com/opensearch-project/opensearch-go/v4"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
 )
 
 const IndexName = "go-test-index1"
@@ -296,9 +296,9 @@ import (
 	"github.com/aws/aws-sdk-go-v2/aws"
 	"github.com/aws/aws-sdk-go-v2/config"
 
-	"github.com/opensearch-project/opensearch-go/v3"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	requestsigner "github.com/opensearch-project/opensearch-go/v3/signer/awsv2"
+	"github.com/opensearch-project/opensearch-go/v4"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	requestsigner "github.com/opensearch-project/opensearch-go/v4/signer/awsv2"
 )
 
 const endpoint = "" // e.g. https://opensearch-domain.region.com or Amazon OpenSearch Serverless endpoint
diff --git a/_samples/advanced_index_actions.go b/_samples/advanced_index_actions.go
index 7a77730..a451fbd 100644
--- a/_samples/advanced_index_actions.go
+++ b/_samples/advanced_index_actions.go
@@ -13,8 +13,8 @@ import (
 	"os"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
+	"github.com/opensearch-project/opensearch-go/v4"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
 )
 
 func main() {
diff --git a/_samples/bulk.go b/_samples/bulk.go
index 517a854..9235123 100644
--- a/_samples/bulk.go
+++ b/_samples/bulk.go
@@ -14,8 +14,8 @@ import (
 	"os"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
+	"github.com/opensearch-project/opensearch-go/v4"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
 )
 
 func main() {
diff --git a/_samples/data_stream.go b/_samples/data_stream.go
index 4802941..c2f0bd3 100644
--- a/_samples/data_stream.go
+++ b/_samples/data_stream.go
@@ -14,8 +14,8 @@ import (
 	"os"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
+	"github.com/opensearch-project/opensearch-go/v4"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
 )
 
 func main() {
diff --git a/_samples/document_lifecycle.go b/_samples/document_lifecycle.go
index 9704334..0f0c57d 100644
--- a/_samples/document_lifecycle.go
+++ b/_samples/document_lifecycle.go
@@ -14,8 +14,8 @@ import (
 	"os"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
+	"github.com/opensearch-project/opensearch-go/v4"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
 )
 
 func main() {
diff --git a/_samples/index_lifecycle.go b/_samples/index_lifecycle.go
index fdc1406..a11715b 100644
--- a/_samples/index_lifecycle.go
+++ b/_samples/index_lifecycle.go
@@ -14,8 +14,8 @@ import (
 	"os"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
+	"github.com/opensearch-project/opensearch-go/v4"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
 )
 
 func main() {
diff --git a/_samples/json.go b/_samples/json.go
index 1de9207..739ba49 100644
--- a/_samples/json.go
+++ b/_samples/json.go
@@ -13,8 +13,8 @@ import (
 	"os"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
+	"github.com/opensearch-project/opensearch-go/v4"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
 )
 
 const IndexName = "go-test-index1"
diff --git a/_samples/search.go b/_samples/search.go
index bfcd667..6b3ac71 100644
--- a/_samples/search.go
+++ b/_samples/search.go
@@ -16,8 +16,8 @@ import (
 	"strings"
 	"time"
 
-	"github.com/opensearch-project/opensearch-go/v3"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
+	"github.com/opensearch-project/opensearch-go/v4"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
 )
 
 func main() {
diff --git a/go.mod b/go.mod
index 1d78441..59b23ef 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module github.com/opensearch-project/opensearch-go/v3
+module github.com/opensearch-project/opensearch-go/v4
 
 go 1.21
 
diff --git a/guides/advanced_index_actions.md b/guides/advanced_index_actions.md
index e4df492..e5b8e3e 100644
--- a/guides/advanced_index_actions.md
+++ b/guides/advanced_index_actions.md
@@ -15,7 +15,7 @@ import (
 	"os"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
 )
 
 func main() {
diff --git a/guides/bulk.md b/guides/bulk.md
index 4668df7..0d31298 100644
--- a/guides/bulk.md
+++ b/guides/bulk.md
@@ -16,7 +16,7 @@ import (
 	"os"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
 )
 
 func main() {
diff --git a/guides/data_streams.md b/guides/data_streams.md
index 1604e17..c04fa47 100644
--- a/guides/data_streams.md
+++ b/guides/data_streams.md
@@ -13,7 +13,7 @@ import (
 	"os"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
 )
 
 func main() {
diff --git a/guides/document_lifecycle.md b/guides/document_lifecycle.md
index 40a9654..bf3aef9 100644
--- a/guides/document_lifecycle.md
+++ b/guides/document_lifecycle.md
@@ -15,7 +15,7 @@ import (
 	"os"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
 )
 
 func main() {
diff --git a/guides/index_lifecycle.md b/guides/index_lifecycle.md
index 031bad6..f2c803f 100644
--- a/guides/index_lifecycle.md
+++ b/guides/index_lifecycle.md
@@ -26,7 +26,7 @@ import (
 	"os"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
 )
 
 func main() {
diff --git a/guides/index_template.md b/guides/index_template.md
index 2d6a990..6befd14 100644
--- a/guides/index_template.md
+++ b/guides/index_template.md
@@ -17,8 +17,8 @@ import (
 	"os"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
+	"github.com/opensearch-project/opensearch-go/v4"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
 )
 
 func main() {
diff --git a/guides/json.md b/guides/json.md
index e65e433..8667964 100644
--- a/guides/json.md
+++ b/guides/json.md
@@ -23,7 +23,7 @@ import (
 	"os"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
 )
 
 func main() {
diff --git a/guides/search.md b/guides/search.md
index 2f68149..a5ad2e9 100644
--- a/guides/search.md
+++ b/guides/search.md
@@ -16,7 +16,7 @@ import (
 	"strconv"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
 )
 
 func main() {
diff --git a/internal/version/version.go b/internal/version/version.go
index 06aa582..89d7430 100644
--- a/internal/version/version.go
+++ b/internal/version/version.go
@@ -27,4 +27,4 @@
 package version
 
 // Client returns the client version as a string.
-const Client = "3.1.1"
+const Client = "4.0.0"
diff --git a/opensearch.go b/opensearch.go
index 978941c..b04e7c7 100644
--- a/opensearch.go
+++ b/opensearch.go
@@ -41,9 +41,9 @@ import (
 	"strings"
 	"time"
 
-	"github.com/opensearch-project/opensearch-go/v3/internal/version"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchtransport"
-	"github.com/opensearch-project/opensearch-go/v3/signer"
+	"github.com/opensearch-project/opensearch-go/v4/internal/version"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchtransport"
+	"github.com/opensearch-project/opensearch-go/v4/signer"
 )
 
 const (
diff --git a/opensearchapi/api_aliases.go b/opensearchapi/api_aliases.go
index 8633dcd..5967894 100644
--- a/opensearchapi/api_aliases.go
+++ b/opensearchapi/api_aliases.go
@@ -11,7 +11,7 @@ import (
 	"io"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // Aliases executes an /_aliases request with the required AliasesReq
diff --git a/opensearchapi/api_bulk.go b/opensearchapi/api_bulk.go
index 4183ce1..854c07f 100644
--- a/opensearchapi/api_bulk.go
+++ b/opensearchapi/api_bulk.go
@@ -12,7 +12,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // Bulk executes a /_bulk request with the needed BulkReq
diff --git a/opensearchapi/api_cat-aliases.go b/opensearchapi/api_cat-aliases.go
index a3ec4ac..a4485a6 100644
--- a/opensearchapi/api_cat-aliases.go
+++ b/opensearchapi/api_cat-aliases.go
@@ -10,7 +10,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // CatAliasesReq represent possible options for the /_cat/aliases request
diff --git a/opensearchapi/api_cat-allocation.go b/opensearchapi/api_cat-allocation.go
index d125635..899533f 100644
--- a/opensearchapi/api_cat-allocation.go
+++ b/opensearchapi/api_cat-allocation.go
@@ -10,7 +10,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // CatAllocationReq represent possible options for the /_cat/allocation request
diff --git a/opensearchapi/api_cat-cluster_manager.go b/opensearchapi/api_cat-cluster_manager.go
index 6897aa1..bf03671 100644
--- a/opensearchapi/api_cat-cluster_manager.go
+++ b/opensearchapi/api_cat-cluster_manager.go
@@ -9,7 +9,7 @@ package opensearchapi
 import (
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // CatClusterManagerReq represent possible options for the /_cat/cluster_manager request
diff --git a/opensearchapi/api_cat-count.go b/opensearchapi/api_cat-count.go
index d425030..0834245 100644
--- a/opensearchapi/api_cat-count.go
+++ b/opensearchapi/api_cat-count.go
@@ -10,7 +10,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // CatCountReq represent possible options for the /_cat/count request
diff --git a/opensearchapi/api_cat-fielddata.go b/opensearchapi/api_cat-fielddata.go
index aa70dae..7ddefd1 100644
--- a/opensearchapi/api_cat-fielddata.go
+++ b/opensearchapi/api_cat-fielddata.go
@@ -10,7 +10,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // CatFieldDataReq represent possible options for the /_cat/fielddata request
diff --git a/opensearchapi/api_cat-health.go b/opensearchapi/api_cat-health.go
index 4c7df9a..2ffe0f3 100644
--- a/opensearchapi/api_cat-health.go
+++ b/opensearchapi/api_cat-health.go
@@ -9,7 +9,7 @@ package opensearchapi
 import (
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // CatHealthReq represent possible options for the /_cat/health request
diff --git a/opensearchapi/api_cat-indices.go b/opensearchapi/api_cat-indices.go
index 30939cb..28ddc18 100644
--- a/opensearchapi/api_cat-indices.go
+++ b/opensearchapi/api_cat-indices.go
@@ -10,7 +10,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // CatIndicesReq represent possible options for the /_cat/indices request
diff --git a/opensearchapi/api_cat-master.go b/opensearchapi/api_cat-master.go
index bb16262..0ff98fb 100644
--- a/opensearchapi/api_cat-master.go
+++ b/opensearchapi/api_cat-master.go
@@ -9,7 +9,7 @@ package opensearchapi
 import (
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // CatMasterReq represent possible options for the /_cat/master request
diff --git a/opensearchapi/api_cat-nodeattrs.go b/opensearchapi/api_cat-nodeattrs.go
index 1f548be..3785893 100644
--- a/opensearchapi/api_cat-nodeattrs.go
+++ b/opensearchapi/api_cat-nodeattrs.go
@@ -9,7 +9,7 @@ package opensearchapi
 import (
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // CatNodeAttrsReq represent possible options for the /_cat/nodeattrs request
diff --git a/opensearchapi/api_cat-nodes.go b/opensearchapi/api_cat-nodes.go
index 1f9275f..207431c 100644
--- a/opensearchapi/api_cat-nodes.go
+++ b/opensearchapi/api_cat-nodes.go
@@ -9,7 +9,7 @@ package opensearchapi
 import (
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // CatNodesReq represent possible options for the /_cat/nodes request
diff --git a/opensearchapi/api_cat-pending_tasks.go b/opensearchapi/api_cat-pending_tasks.go
index c830d36..4c43cce 100644
--- a/opensearchapi/api_cat-pending_tasks.go
+++ b/opensearchapi/api_cat-pending_tasks.go
@@ -9,7 +9,7 @@ package opensearchapi
 import (
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // CatPendingTasksReq represent possible options for the /_cat/pending_tasks request
diff --git a/opensearchapi/api_cat-plugins.go b/opensearchapi/api_cat-plugins.go
index 451d234..08035c3 100644
--- a/opensearchapi/api_cat-plugins.go
+++ b/opensearchapi/api_cat-plugins.go
@@ -9,7 +9,7 @@ package opensearchapi
 import (
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // CatPluginsReq represent possible options for the /_cat/plugins request
diff --git a/opensearchapi/api_cat-recovery.go b/opensearchapi/api_cat-recovery.go
index 2dc29c3..10a82ce 100644
--- a/opensearchapi/api_cat-recovery.go
+++ b/opensearchapi/api_cat-recovery.go
@@ -10,7 +10,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // CatRecoveryReq represent possible options for the /_cat/recovery request
diff --git a/opensearchapi/api_cat-repositories.go b/opensearchapi/api_cat-repositories.go
index 760b458..3541789 100644
--- a/opensearchapi/api_cat-repositories.go
+++ b/opensearchapi/api_cat-repositories.go
@@ -9,7 +9,7 @@ package opensearchapi
 import (
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // CatRepositoriesReq represent possible options for the /_cat/repositories request
diff --git a/opensearchapi/api_cat-segments.go b/opensearchapi/api_cat-segments.go
index 0dec8d2..b4d6685 100644
--- a/opensearchapi/api_cat-segments.go
+++ b/opensearchapi/api_cat-segments.go
@@ -10,7 +10,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // CatSegmentsReq represent possible options for the /_cat/segments request
diff --git a/opensearchapi/api_cat-shards.go b/opensearchapi/api_cat-shards.go
index a87d8d3..acc3ee4 100644
--- a/opensearchapi/api_cat-shards.go
+++ b/opensearchapi/api_cat-shards.go
@@ -10,7 +10,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // CatShardsReq represent possible options for the /_cat/shards request
diff --git a/opensearchapi/api_cat-snapshots.go b/opensearchapi/api_cat-snapshots.go
index 0e150b0..76c6485 100644
--- a/opensearchapi/api_cat-snapshots.go
+++ b/opensearchapi/api_cat-snapshots.go
@@ -10,7 +10,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // CatSnapshotsReq represent possible options for the /_cat/snapshots request
diff --git a/opensearchapi/api_cat-tasks.go b/opensearchapi/api_cat-tasks.go
index 5a92399..5eecade 100644
--- a/opensearchapi/api_cat-tasks.go
+++ b/opensearchapi/api_cat-tasks.go
@@ -9,7 +9,7 @@ package opensearchapi
 import (
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // CatTasksReq represent possible options for the /_cat/tasks request
diff --git a/opensearchapi/api_cat-templates.go b/opensearchapi/api_cat-templates.go
index a92eb8b..07b0db5 100644
--- a/opensearchapi/api_cat-templates.go
+++ b/opensearchapi/api_cat-templates.go
@@ -10,7 +10,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // CatTemplatesReq represent possible options for the /_cat/templates request
diff --git a/opensearchapi/api_cat-thread_pool.go b/opensearchapi/api_cat-thread_pool.go
index 7119380..37c29e5 100644
--- a/opensearchapi/api_cat-thread_pool.go
+++ b/opensearchapi/api_cat-thread_pool.go
@@ -10,7 +10,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // CatThreadPoolReq represent possible options for the /_cat/thread_pool request
diff --git a/opensearchapi/api_cluster-allocation_explain.go b/opensearchapi/api_cluster-allocation_explain.go
index 2e9622a..b446fe4 100644
--- a/opensearchapi/api_cluster-allocation_explain.go
+++ b/opensearchapi/api_cluster-allocation_explain.go
@@ -12,7 +12,7 @@ import (
 	"io"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // ClusterAllocationExplainReq represents possible options for the /_nodes request
diff --git a/opensearchapi/api_cluster-decommission.go b/opensearchapi/api_cluster-decommission.go
index d88d058..d0f99bb 100644
--- a/opensearchapi/api_cluster-decommission.go
+++ b/opensearchapi/api_cluster-decommission.go
@@ -10,7 +10,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // ClusterPutDecommissionReq represents possible options for the /_cluster/decommission/awareness request
diff --git a/opensearchapi/api_cluster-health.go b/opensearchapi/api_cluster-health.go
index a928737..aa89841 100644
--- a/opensearchapi/api_cluster-health.go
+++ b/opensearchapi/api_cluster-health.go
@@ -10,7 +10,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // ClusterHealthReq represents possible options for the /_cluster/health request
diff --git a/opensearchapi/api_cluster-pending_tasks.go b/opensearchapi/api_cluster-pending_tasks.go
index 56bfb75..ba26216 100644
--- a/opensearchapi/api_cluster-pending_tasks.go
+++ b/opensearchapi/api_cluster-pending_tasks.go
@@ -9,7 +9,7 @@ package opensearchapi
 import (
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // ClusterPendingTasksReq represents possible options for the /_cluster/pending_tasks request
diff --git a/opensearchapi/api_cluster-remote_info.go b/opensearchapi/api_cluster-remote_info.go
index b4b265f..af74f8d 100644
--- a/opensearchapi/api_cluster-remote_info.go
+++ b/opensearchapi/api_cluster-remote_info.go
@@ -9,7 +9,7 @@ package opensearchapi
 import (
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // ClusterRemoteInfoReq represents possible options for the /_remote/info request
diff --git a/opensearchapi/api_cluster-reroute.go b/opensearchapi/api_cluster-reroute.go
index 2178ca6..113e12b 100644
--- a/opensearchapi/api_cluster-reroute.go
+++ b/opensearchapi/api_cluster-reroute.go
@@ -11,7 +11,7 @@ import (
 	"io"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // ClusterRerouteReq represents possible options for the /_cluster/reroute request
diff --git a/opensearchapi/api_cluster-settings.go b/opensearchapi/api_cluster-settings.go
index 22c11b4..dc1e5ee 100644
--- a/opensearchapi/api_cluster-settings.go
+++ b/opensearchapi/api_cluster-settings.go
@@ -11,7 +11,7 @@ import (
 	"io"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // ClusterGetSettingsReq represents possible options for the /_cluster/settings request
diff --git a/opensearchapi/api_cluster-state.go b/opensearchapi/api_cluster-state.go
index c0c3e01..096f3fb 100644
--- a/opensearchapi/api_cluster-state.go
+++ b/opensearchapi/api_cluster-state.go
@@ -11,7 +11,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // ClusterStateReq represents possible options for the /_cluster/state request
diff --git a/opensearchapi/api_cluster-stats.go b/opensearchapi/api_cluster-stats.go
index 025aaba..0e171d5 100644
--- a/opensearchapi/api_cluster-stats.go
+++ b/opensearchapi/api_cluster-stats.go
@@ -11,7 +11,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // ClusterStatsReq represents possible options for the /_cluster/stats request
diff --git a/opensearchapi/api_cluster-voting_config_exclusions.go b/opensearchapi/api_cluster-voting_config_exclusions.go
index c5c7b17..cd736a9 100644
--- a/opensearchapi/api_cluster-voting_config_exclusions.go
+++ b/opensearchapi/api_cluster-voting_config_exclusions.go
@@ -9,7 +9,7 @@ package opensearchapi
 import (
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // ClusterPostVotingConfigExclusionsReq represents possible options for the /_cluster/voting_config_exclusions request
diff --git a/opensearchapi/api_cluster.go b/opensearchapi/api_cluster.go
index d66a450..ae132d3 100644
--- a/opensearchapi/api_cluster.go
+++ b/opensearchapi/api_cluster.go
@@ -9,7 +9,7 @@ package opensearchapi
 import (
 	"context"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 type clusterClient struct {
diff --git a/opensearchapi/api_component_template-create.go b/opensearchapi/api_component_template-create.go
index 608437c..2373957 100644
--- a/opensearchapi/api_component_template-create.go
+++ b/opensearchapi/api_component_template-create.go
@@ -11,7 +11,7 @@ import (
 	"io"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // ComponentTemplateCreateReq represents possible options for the _component_template create request
diff --git a/opensearchapi/api_component_template-delete.go b/opensearchapi/api_component_template-delete.go
index 799bdaa..ceb66bb 100644
--- a/opensearchapi/api_component_template-delete.go
+++ b/opensearchapi/api_component_template-delete.go
@@ -10,7 +10,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // ComponentTemplateDeleteReq represents possible options for the _component_template delete request
diff --git a/opensearchapi/api_component_template-exists.go b/opensearchapi/api_component_template-exists.go
index 3f13e8c..d70203e 100644
--- a/opensearchapi/api_component_template-exists.go
+++ b/opensearchapi/api_component_template-exists.go
@@ -10,7 +10,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // ComponentTemplateExistsReq represents possible options for the _component_template exists request
diff --git a/opensearchapi/api_component_template-get.go b/opensearchapi/api_component_template-get.go
index 637b796..f9366bb 100644
--- a/opensearchapi/api_component_template-get.go
+++ b/opensearchapi/api_component_template-get.go
@@ -11,7 +11,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // ComponentTemplateGetReq represents possible options for the _component_template get request
diff --git a/opensearchapi/api_component_template.go b/opensearchapi/api_component_template.go
index 008efbc..6760af1 100644
--- a/opensearchapi/api_component_template.go
+++ b/opensearchapi/api_component_template.go
@@ -9,7 +9,7 @@ package opensearchapi
 import (
 	"context"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 type componentTemplateClient struct {
diff --git a/opensearchapi/api_dangling-delete.go b/opensearchapi/api_dangling-delete.go
index 5705614..03ff832 100644
--- a/opensearchapi/api_dangling-delete.go
+++ b/opensearchapi/api_dangling-delete.go
@@ -10,7 +10,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // DanglingDeleteReq represents possible options for the delete dangling request
diff --git a/opensearchapi/api_dangling-get.go b/opensearchapi/api_dangling-get.go
index 5b20c88..974d1f8 100644
--- a/opensearchapi/api_dangling-get.go
+++ b/opensearchapi/api_dangling-get.go
@@ -9,7 +9,7 @@ package opensearchapi
 import (
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // DanglingGetReq represents possible options for the dangling get request
diff --git a/opensearchapi/api_dangling-import.go b/opensearchapi/api_dangling-import.go
index 27d2fc5..83ad7ce 100644
--- a/opensearchapi/api_dangling-import.go
+++ b/opensearchapi/api_dangling-import.go
@@ -10,7 +10,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // DanglingImportReq represents possible options for the dangling import request
diff --git a/opensearchapi/api_datastream-create.go b/opensearchapi/api_datastream-create.go
index 9ba4cee..148dee1 100644
--- a/opensearchapi/api_datastream-create.go
+++ b/opensearchapi/api_datastream-create.go
@@ -10,7 +10,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // DataStreamCreateReq represents possible options for the _data_stream create request
diff --git a/opensearchapi/api_datastream-delete.go b/opensearchapi/api_datastream-delete.go
index 0bdb448..929b1f8 100644
--- a/opensearchapi/api_datastream-delete.go
+++ b/opensearchapi/api_datastream-delete.go
@@ -10,7 +10,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // DataStreamDeleteReq represents possible options for the index _data_stream delete request
diff --git a/opensearchapi/api_datastream-get.go b/opensearchapi/api_datastream-get.go
index 595c28a..20604ae 100644
--- a/opensearchapi/api_datastream-get.go
+++ b/opensearchapi/api_datastream-get.go
@@ -10,7 +10,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // DataStreamGetReq represents possible options for the _data_stream get request
diff --git a/opensearchapi/api_datastream-stats.go b/opensearchapi/api_datastream-stats.go
index 0c6747a..d99f8dc 100644
--- a/opensearchapi/api_datastream-stats.go
+++ b/opensearchapi/api_datastream-stats.go
@@ -10,7 +10,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // DataStreamStatsReq represents possible options for the _data_stream stats request
diff --git a/opensearchapi/api_document-create.go b/opensearchapi/api_document-create.go
index 8af66b3..10a7a4a 100644
--- a/opensearchapi/api_document-create.go
+++ b/opensearchapi/api_document-create.go
@@ -11,7 +11,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // DocumentCreateReq represents possible options for the /<index>/_create request
diff --git a/opensearchapi/api_document-delete.go b/opensearchapi/api_document-delete.go
index b840ff6..7a282f8 100644
--- a/opensearchapi/api_document-delete.go
+++ b/opensearchapi/api_document-delete.go
@@ -10,7 +10,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // DocumentDeleteReq represents possible options for the /<index>/_doc/<DocID> delete request
diff --git a/opensearchapi/api_document-delete_by_query.go b/opensearchapi/api_document-delete_by_query.go
index 909ec85..e936006 100644
--- a/opensearchapi/api_document-delete_by_query.go
+++ b/opensearchapi/api_document-delete_by_query.go
@@ -13,7 +13,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // DocumentDeleteByQueryReq represents possible options for the /<index>/_delete_by_query request
diff --git a/opensearchapi/api_document-delete_by_query_rethrottle.go b/opensearchapi/api_document-delete_by_query_rethrottle.go
index 4221107..5f741ef 100644
--- a/opensearchapi/api_document-delete_by_query_rethrottle.go
+++ b/opensearchapi/api_document-delete_by_query_rethrottle.go
@@ -11,7 +11,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // DocumentDeleteByQueryRethrottleReq represents possible options for the /_delete_by_query/<index>/_rethrottle request
diff --git a/opensearchapi/api_document-exists.go b/opensearchapi/api_document-exists.go
index 23b9f58..01c7d2a 100644
--- a/opensearchapi/api_document-exists.go
+++ b/opensearchapi/api_document-exists.go
@@ -10,7 +10,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // DocumentExistsReq represents possible options for the document exists request
diff --git a/opensearchapi/api_document-exists_source.go b/opensearchapi/api_document-exists_source.go
index cb02f67..35ee300 100644
--- a/opensearchapi/api_document-exists_source.go
+++ b/opensearchapi/api_document-exists_source.go
@@ -10,7 +10,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // DocumentExistsSourceReq represents possible options for the _source exists request
diff --git a/opensearchapi/api_document-explain.go b/opensearchapi/api_document-explain.go
index 619b3fc..2610fe0 100644
--- a/opensearchapi/api_document-explain.go
+++ b/opensearchapi/api_document-explain.go
@@ -11,7 +11,7 @@ import (
 	"io"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // DocumentExplainReq represents possible options for the /<Index>/_explain/<DocumentID> request
diff --git a/opensearchapi/api_document-get.go b/opensearchapi/api_document-get.go
index 9f3ca2a..39862ad 100644
--- a/opensearchapi/api_document-get.go
+++ b/opensearchapi/api_document-get.go
@@ -11,7 +11,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // DocumentGetReq represents possible options for the /<Index>/_doc/<DocumentID> get request
diff --git a/opensearchapi/api_document-source.go b/opensearchapi/api_document-source.go
index 101055c..c2c9bb5 100644
--- a/opensearchapi/api_document-source.go
+++ b/opensearchapi/api_document-source.go
@@ -11,7 +11,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // DocumentSourceReq represents possible options for the /<Index>/_source/<DocumentID> get request
diff --git a/opensearchapi/api_document.go b/opensearchapi/api_document.go
index d6c8859..082119d 100644
--- a/opensearchapi/api_document.go
+++ b/opensearchapi/api_document.go
@@ -8,7 +8,7 @@ package opensearchapi
 import (
 	"context"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 type documentClient struct {
diff --git a/opensearchapi/api_index.go b/opensearchapi/api_index.go
index c1a2439..d772a75 100644
--- a/opensearchapi/api_index.go
+++ b/opensearchapi/api_index.go
@@ -12,7 +12,7 @@ import (
 	"io"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // Index executes a /_doc request with the given IndexReq
diff --git a/opensearchapi/api_index_template-create.go b/opensearchapi/api_index_template-create.go
index 6cb07e6..1d6e35b 100644
--- a/opensearchapi/api_index_template-create.go
+++ b/opensearchapi/api_index_template-create.go
@@ -11,7 +11,7 @@ import (
 	"io"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // IndexTemplateCreateReq represents possible options for the index create request
diff --git a/opensearchapi/api_index_template-delete.go b/opensearchapi/api_index_template-delete.go
index 10aa26c..0c10116 100644
--- a/opensearchapi/api_index_template-delete.go
+++ b/opensearchapi/api_index_template-delete.go
@@ -10,7 +10,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // IndexTemplateDeleteReq represents possible options for the index create request
diff --git a/opensearchapi/api_index_template-exists.go b/opensearchapi/api_index_template-exists.go
index 90e9e96..24d3c53 100644
--- a/opensearchapi/api_index_template-exists.go
+++ b/opensearchapi/api_index_template-exists.go
@@ -10,7 +10,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // IndexTemplateExistsReq represents possible options for the index create request
diff --git a/opensearchapi/api_index_template-get.go b/opensearchapi/api_index_template-get.go
index 50c7dd3..db2bb89 100644
--- a/opensearchapi/api_index_template-get.go
+++ b/opensearchapi/api_index_template-get.go
@@ -12,7 +12,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // IndexTemplateGetReq represents possible options for the index create request
diff --git a/opensearchapi/api_index_template-simulate.go b/opensearchapi/api_index_template-simulate.go
index 207f493..5cc253a 100644
--- a/opensearchapi/api_index_template-simulate.go
+++ b/opensearchapi/api_index_template-simulate.go
@@ -12,7 +12,7 @@ import (
 	"io"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // IndexTemplateSimulateReq represents possible options for the index create request
diff --git a/opensearchapi/api_index_template-simulate_index.go b/opensearchapi/api_index_template-simulate_index.go
index a7624fb..3d59105 100644
--- a/opensearchapi/api_index_template-simulate_index.go
+++ b/opensearchapi/api_index_template-simulate_index.go
@@ -12,7 +12,7 @@ import (
 	"io"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // IndexTemplateSimulateIndexReq represents possible options for the index create request
diff --git a/opensearchapi/api_index_template.go b/opensearchapi/api_index_template.go
index 67c603f..a42c553 100644
--- a/opensearchapi/api_index_template.go
+++ b/opensearchapi/api_index_template.go
@@ -9,7 +9,7 @@ package opensearchapi
 import (
 	"context"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 type indexTemplateClient struct {
diff --git a/opensearchapi/api_indices-alias.go b/opensearchapi/api_indices-alias.go
index 2aaadea..fbbafdc 100644
--- a/opensearchapi/api_indices-alias.go
+++ b/opensearchapi/api_indices-alias.go
@@ -12,7 +12,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 type aliasClient struct {
diff --git a/opensearchapi/api_indices-analyze.go b/opensearchapi/api_indices-analyze.go
index 31de02f..008fd96 100644
--- a/opensearchapi/api_indices-analyze.go
+++ b/opensearchapi/api_indices-analyze.go
@@ -12,7 +12,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // IndicesAnalyzeReq represents possible options for the <indices>/_analyze request
diff --git a/opensearchapi/api_indices-block.go b/opensearchapi/api_indices-block.go
index f023e40..0d54cea 100644
--- a/opensearchapi/api_indices-block.go
+++ b/opensearchapi/api_indices-block.go
@@ -10,7 +10,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // IndicesBlockReq represents possible options for the index create request
diff --git a/opensearchapi/api_indices-cache.go b/opensearchapi/api_indices-cache.go
index 7b4db97..f29fa68 100644
--- a/opensearchapi/api_indices-cache.go
+++ b/opensearchapi/api_indices-cache.go
@@ -10,7 +10,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // IndicesClearCacheReq represents possible options for the index clear cache request
diff --git a/opensearchapi/api_indices-clone.go b/opensearchapi/api_indices-clone.go
index 7160ba8..adaddb9 100644
--- a/opensearchapi/api_indices-clone.go
+++ b/opensearchapi/api_indices-clone.go
@@ -11,7 +11,7 @@ import (
 	"io"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // IndicesCloneReq represents possible options for the index clone request
diff --git a/opensearchapi/api_indices-close.go b/opensearchapi/api_indices-close.go
index 9c51b8d..4275278 100644
--- a/opensearchapi/api_indices-close.go
+++ b/opensearchapi/api_indices-close.go
@@ -10,7 +10,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // IndicesCloseReq represents possible options for the index close request
diff --git a/opensearchapi/api_indices-count.go b/opensearchapi/api_indices-count.go
index 389ab77..f8dc453 100644
--- a/opensearchapi/api_indices-count.go
+++ b/opensearchapi/api_indices-count.go
@@ -11,7 +11,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // IndicesCountReq represents possible options for the index shrink request
diff --git a/opensearchapi/api_indices-create.go b/opensearchapi/api_indices-create.go
index 76ba736..cfd773d 100644
--- a/opensearchapi/api_indices-create.go
+++ b/opensearchapi/api_indices-create.go
@@ -11,7 +11,7 @@ import (
 	"io"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // IndicesCreateReq represents possible options for the index create request
diff --git a/opensearchapi/api_indices-delete.go b/opensearchapi/api_indices-delete.go
index ac46f0a..57857d3 100644
--- a/opensearchapi/api_indices-delete.go
+++ b/opensearchapi/api_indices-delete.go
@@ -11,7 +11,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // IndicesDeleteReq represents possible options for the delete indices request
diff --git a/opensearchapi/api_indices-exists.go b/opensearchapi/api_indices-exists.go
index 6b0f2ec..3d86e58 100644
--- a/opensearchapi/api_indices-exists.go
+++ b/opensearchapi/api_indices-exists.go
@@ -11,7 +11,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // IndicesExistsReq represents possible options for the index exists request
diff --git a/opensearchapi/api_indices-field_caps.go b/opensearchapi/api_indices-field_caps.go
index a376c28..3f4e29a 100644
--- a/opensearchapi/api_indices-field_caps.go
+++ b/opensearchapi/api_indices-field_caps.go
@@ -11,7 +11,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // IndicesFieldCapsReq represents possible options for the index shrink request
diff --git a/opensearchapi/api_indices-flush.go b/opensearchapi/api_indices-flush.go
index 966e830..cf3bedf 100644
--- a/opensearchapi/api_indices-flush.go
+++ b/opensearchapi/api_indices-flush.go
@@ -10,7 +10,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // IndicesFlushReq represents possible options for the flush indices request
diff --git a/opensearchapi/api_indices-forcemerge.go b/opensearchapi/api_indices-forcemerge.go
index 41bd2c9..c8f3678 100644
--- a/opensearchapi/api_indices-forcemerge.go
+++ b/opensearchapi/api_indices-forcemerge.go
@@ -10,7 +10,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // IndicesForcemergeReq represents possible options for the <index>/_forcemerge request
diff --git a/opensearchapi/api_indices-get.go b/opensearchapi/api_indices-get.go
index 4a6ecdb..8fdfd53 100644
--- a/opensearchapi/api_indices-get.go
+++ b/opensearchapi/api_indices-get.go
@@ -12,7 +12,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // IndicesGetReq represents possible options for the get indices request
diff --git a/opensearchapi/api_indices-mapping.go b/opensearchapi/api_indices-mapping.go
index 7e689fe..64d17a5 100644
--- a/opensearchapi/api_indices-mapping.go
+++ b/opensearchapi/api_indices-mapping.go
@@ -13,7 +13,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 type mappingClient struct {
diff --git a/opensearchapi/api_indices-open.go b/opensearchapi/api_indices-open.go
index 5197c07..28a3c81 100644
--- a/opensearchapi/api_indices-open.go
+++ b/opensearchapi/api_indices-open.go
@@ -10,7 +10,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // IndicesOpenReq represents possible options for the index open request
diff --git a/opensearchapi/api_indices-recovery.go b/opensearchapi/api_indices-recovery.go
index edc216b..68dfdcb 100644
--- a/opensearchapi/api_indices-recovery.go
+++ b/opensearchapi/api_indices-recovery.go
@@ -10,7 +10,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // IndicesRecoveryReq represents possible options for the index shrink request
diff --git a/opensearchapi/api_indices-refresh.go b/opensearchapi/api_indices-refresh.go
index bd16be9..d499175 100644
--- a/opensearchapi/api_indices-refresh.go
+++ b/opensearchapi/api_indices-refresh.go
@@ -10,7 +10,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // IndicesRefreshReq represents possible options for the <index>/_refresh request
diff --git a/opensearchapi/api_indices-resolve.go b/opensearchapi/api_indices-resolve.go
index eba983a..882c6ef 100644
--- a/opensearchapi/api_indices-resolve.go
+++ b/opensearchapi/api_indices-resolve.go
@@ -11,7 +11,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // IndicesResolveReq represents possible options for the get indices request
diff --git a/opensearchapi/api_indices-rollover.go b/opensearchapi/api_indices-rollover.go
index a4a4962..49bd020 100644
--- a/opensearchapi/api_indices-rollover.go
+++ b/opensearchapi/api_indices-rollover.go
@@ -11,7 +11,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // IndicesRolloverReq represents possible options for the index shrink request
diff --git a/opensearchapi/api_indices-segments.go b/opensearchapi/api_indices-segments.go
index ca3fb64..4a4cc62 100644
--- a/opensearchapi/api_indices-segments.go
+++ b/opensearchapi/api_indices-segments.go
@@ -10,7 +10,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // IndicesSegmentsReq represents possible options for the index shrink request
diff --git a/opensearchapi/api_indices-settings.go b/opensearchapi/api_indices-settings.go
index 70ed77e..27b507f 100644
--- a/opensearchapi/api_indices-settings.go
+++ b/opensearchapi/api_indices-settings.go
@@ -13,7 +13,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 type settingsClient struct {
diff --git a/opensearchapi/api_indices-shardstores.go b/opensearchapi/api_indices-shardstores.go
index c6946d2..91a7bd3 100644
--- a/opensearchapi/api_indices-shardstores.go
+++ b/opensearchapi/api_indices-shardstores.go
@@ -11,7 +11,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // IndicesShardStoresReq represents possible options for the index shrink request
diff --git a/opensearchapi/api_indices-shrink.go b/opensearchapi/api_indices-shrink.go
index 3a11b82..367bbd8 100644
--- a/opensearchapi/api_indices-shrink.go
+++ b/opensearchapi/api_indices-shrink.go
@@ -11,7 +11,7 @@ import (
 	"io"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // IndicesShrinkReq represents possible options for the index shrink request
diff --git a/opensearchapi/api_indices-split.go b/opensearchapi/api_indices-split.go
index 07f085c..dba82ff 100644
--- a/opensearchapi/api_indices-split.go
+++ b/opensearchapi/api_indices-split.go
@@ -11,7 +11,7 @@ import (
 	"io"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // IndicesSplitReq represents possible options for the index split request
diff --git a/opensearchapi/api_indices-stats.go b/opensearchapi/api_indices-stats.go
index fccc92c..1a7d559 100644
--- a/opensearchapi/api_indices-stats.go
+++ b/opensearchapi/api_indices-stats.go
@@ -11,7 +11,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // IndicesStatsReq represents possible options for the index shrink request
diff --git a/opensearchapi/api_indices-validate.go b/opensearchapi/api_indices-validate.go
index 742a640..5ab4446 100644
--- a/opensearchapi/api_indices-validate.go
+++ b/opensearchapi/api_indices-validate.go
@@ -11,7 +11,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // IndicesValidateQueryReq represents possible options for the index shrink request
diff --git a/opensearchapi/api_indices.go b/opensearchapi/api_indices.go
index 0e8f8a9..96bc8a9 100644
--- a/opensearchapi/api_indices.go
+++ b/opensearchapi/api_indices.go
@@ -9,7 +9,7 @@ package opensearchapi
 import (
 	"context"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 type indicesClient struct {
diff --git a/opensearchapi/api_info.go b/opensearchapi/api_info.go
index 45277b2..fc4ceb4 100644
--- a/opensearchapi/api_info.go
+++ b/opensearchapi/api_info.go
@@ -10,7 +10,7 @@ import (
 	"context"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // Info executes a / request with the optional InfoReq
diff --git a/opensearchapi/api_ingest-create.go b/opensearchapi/api_ingest-create.go
index fce4645..f5d7adc 100644
--- a/opensearchapi/api_ingest-create.go
+++ b/opensearchapi/api_ingest-create.go
@@ -11,7 +11,7 @@ import (
 	"io"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // IngestCreateReq represents possible options for the index create request
diff --git a/opensearchapi/api_ingest-delete.go b/opensearchapi/api_ingest-delete.go
index f09622d..4e798d8 100644
--- a/opensearchapi/api_ingest-delete.go
+++ b/opensearchapi/api_ingest-delete.go
@@ -10,7 +10,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // IngestDeleteReq represents possible options for the index create request
diff --git a/opensearchapi/api_ingest-get.go b/opensearchapi/api_ingest-get.go
index a5ad90c..5ba24e3 100644
--- a/opensearchapi/api_ingest-get.go
+++ b/opensearchapi/api_ingest-get.go
@@ -12,7 +12,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // IngestGetReq represents possible options for the index create request
diff --git a/opensearchapi/api_ingest-grok.go b/opensearchapi/api_ingest-grok.go
index 7870503..a6cdc4b 100644
--- a/opensearchapi/api_ingest-grok.go
+++ b/opensearchapi/api_ingest-grok.go
@@ -9,7 +9,7 @@ package opensearchapi
 import (
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // IngestGrokReq represents possible options for the index create request
diff --git a/opensearchapi/api_ingest-simulate.go b/opensearchapi/api_ingest-simulate.go
index b75f977..1aa81e3 100644
--- a/opensearchapi/api_ingest-simulate.go
+++ b/opensearchapi/api_ingest-simulate.go
@@ -12,7 +12,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // IngestSimulateReq represents possible options for the index create request
diff --git a/opensearchapi/api_mget.go b/opensearchapi/api_mget.go
index e1994d3..11a3067 100644
--- a/opensearchapi/api_mget.go
+++ b/opensearchapi/api_mget.go
@@ -13,7 +13,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // MGet executes a /_mget request with the optional MGetReq
diff --git a/opensearchapi/api_msearch-template.go b/opensearchapi/api_msearch-template.go
index a836a4c..b6206ef 100644
--- a/opensearchapi/api_msearch-template.go
+++ b/opensearchapi/api_msearch-template.go
@@ -12,7 +12,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // MSearchTemplate executes a /_msearch request with the optional MSearchTemplateReq
diff --git a/opensearchapi/api_msearch.go b/opensearchapi/api_msearch.go
index 6abfc75..d3591b9 100644
--- a/opensearchapi/api_msearch.go
+++ b/opensearchapi/api_msearch.go
@@ -12,7 +12,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // MSearch executes a /_msearch request with the optional MSearchReq
diff --git a/opensearchapi/api_mtermvectors.go b/opensearchapi/api_mtermvectors.go
index 71f9c14..7c30187 100644
--- a/opensearchapi/api_mtermvectors.go
+++ b/opensearchapi/api_mtermvectors.go
@@ -13,7 +13,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // MTermvectors executes a /_mtermvectors request with the required MTermvectorsReq
diff --git a/opensearchapi/api_nodes-hot_threads.go b/opensearchapi/api_nodes-hot_threads.go
index ee5f5ad..080e542 100644
--- a/opensearchapi/api_nodes-hot_threads.go
+++ b/opensearchapi/api_nodes-hot_threads.go
@@ -10,7 +10,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // NodesHotThreadsReq represents possible options for the /_nodes request
diff --git a/opensearchapi/api_nodes-info.go b/opensearchapi/api_nodes-info.go
index 6c518a0..6207e91 100644
--- a/opensearchapi/api_nodes-info.go
+++ b/opensearchapi/api_nodes-info.go
@@ -11,7 +11,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // NodesInfoReq represents possible options for the /_nodes request
diff --git a/opensearchapi/api_nodes-reload_security.go b/opensearchapi/api_nodes-reload_security.go
index 8fda290..a3ca438 100644
--- a/opensearchapi/api_nodes-reload_security.go
+++ b/opensearchapi/api_nodes-reload_security.go
@@ -11,7 +11,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // NodesReloadSecurityReq represents possible options for the /_nodes request
diff --git a/opensearchapi/api_nodes-stats.go b/opensearchapi/api_nodes-stats.go
index 063bbf1..30a7a66 100644
--- a/opensearchapi/api_nodes-stats.go
+++ b/opensearchapi/api_nodes-stats.go
@@ -11,7 +11,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // NodesStatsReq represents possible options for the /_nodes request
diff --git a/opensearchapi/api_nodes-usage.go b/opensearchapi/api_nodes-usage.go
index a4b07b4..8f3a678 100644
--- a/opensearchapi/api_nodes-usage.go
+++ b/opensearchapi/api_nodes-usage.go
@@ -11,7 +11,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // NodesUsageReq represents possible options for the /_nodes request
diff --git a/opensearchapi/api_nodes.go b/opensearchapi/api_nodes.go
index b4f9c94..8de0fc7 100644
--- a/opensearchapi/api_nodes.go
+++ b/opensearchapi/api_nodes.go
@@ -9,7 +9,7 @@ package opensearchapi
 import (
 	"context"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 type nodesClient struct {
diff --git a/opensearchapi/api_ping.go b/opensearchapi/api_ping.go
index e9657d4..15a206c 100644
--- a/opensearchapi/api_ping.go
+++ b/opensearchapi/api_ping.go
@@ -10,7 +10,7 @@ import (
 	"context"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // Ping executes a / request with the optional PingReq
diff --git a/opensearchapi/api_point_in_time-create.go b/opensearchapi/api_point_in_time-create.go
index e0ebaef..5903dd8 100644
--- a/opensearchapi/api_point_in_time-create.go
+++ b/opensearchapi/api_point_in_time-create.go
@@ -10,7 +10,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // PointInTimeCreateReq represents possible options for the index create request
diff --git a/opensearchapi/api_point_in_time-delete.go b/opensearchapi/api_point_in_time-delete.go
index 2e8ae47..6d6f821 100644
--- a/opensearchapi/api_point_in_time-delete.go
+++ b/opensearchapi/api_point_in_time-delete.go
@@ -12,7 +12,7 @@ import (
 	"io"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // PointInTimeDeleteReq represents possible options for the index create request
diff --git a/opensearchapi/api_point_in_time-get.go b/opensearchapi/api_point_in_time-get.go
index 9168806..0fcf398 100644
--- a/opensearchapi/api_point_in_time-get.go
+++ b/opensearchapi/api_point_in_time-get.go
@@ -9,7 +9,7 @@ package opensearchapi
 import (
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // PointInTimeGetReq represents possible options for the index create request
diff --git a/opensearchapi/api_rank_eval.go b/opensearchapi/api_rank_eval.go
index d893005..1aa1bc3 100644
--- a/opensearchapi/api_rank_eval.go
+++ b/opensearchapi/api_rank_eval.go
@@ -13,7 +13,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // RankEval executes a /_rank_eval request with the required RankEvalReq
diff --git a/opensearchapi/api_reindex.go b/opensearchapi/api_reindex.go
index d2942bc..05034e0 100644
--- a/opensearchapi/api_reindex.go
+++ b/opensearchapi/api_reindex.go
@@ -12,7 +12,7 @@ import (
 	"io"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // Reindex executes a / request with the optional ReindexReq
diff --git a/opensearchapi/api_reindex_rethrottle.go b/opensearchapi/api_reindex_rethrottle.go
index d2e73cb..ec123ab 100644
--- a/opensearchapi/api_reindex_rethrottle.go
+++ b/opensearchapi/api_reindex_rethrottle.go
@@ -12,7 +12,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // ReindexRethrottle executes a / request with the optional ReindexRethrottleReq
diff --git a/opensearchapi/api_render_search_template.go b/opensearchapi/api_render_search_template.go
index 80f439e..b419221 100644
--- a/opensearchapi/api_render_search_template.go
+++ b/opensearchapi/api_render_search_template.go
@@ -13,7 +13,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // RenderSearchTemplate executes a /_render/template request with the required RenderSearchTemplateReq
diff --git a/opensearchapi/api_script-context.go b/opensearchapi/api_script-context.go
index 203a74e..1e42f69 100644
--- a/opensearchapi/api_script-context.go
+++ b/opensearchapi/api_script-context.go
@@ -9,7 +9,7 @@ package opensearchapi
 import (
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // ScriptContextReq represents possible options for the delete script request
diff --git a/opensearchapi/api_script-delete.go b/opensearchapi/api_script-delete.go
index 1e7edcd..3d03395 100644
--- a/opensearchapi/api_script-delete.go
+++ b/opensearchapi/api_script-delete.go
@@ -10,7 +10,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // ScriptDeleteReq represents possible options for the delete script request
diff --git a/opensearchapi/api_script-get.go b/opensearchapi/api_script-get.go
index f0a813f..fb2948c 100644
--- a/opensearchapi/api_script-get.go
+++ b/opensearchapi/api_script-get.go
@@ -10,7 +10,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // ScriptGetReq represents possible options for the get script request
diff --git a/opensearchapi/api_script-language.go b/opensearchapi/api_script-language.go
index df46b3b..26cf2eb 100644
--- a/opensearchapi/api_script-language.go
+++ b/opensearchapi/api_script-language.go
@@ -9,7 +9,7 @@ package opensearchapi
 import (
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // ScriptLanguageReq represents possible options for the delete script request
diff --git a/opensearchapi/api_script-painless_execute.go b/opensearchapi/api_script-painless_execute.go
index 8616059..21c63d8 100644
--- a/opensearchapi/api_script-painless_execute.go
+++ b/opensearchapi/api_script-painless_execute.go
@@ -11,7 +11,7 @@ import (
 	"io"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // ScriptPainlessExecuteReq represents possible options for the delete script request
diff --git a/opensearchapi/api_script-put.go b/opensearchapi/api_script-put.go
index 70a1ebb..6af90dc 100644
--- a/opensearchapi/api_script-put.go
+++ b/opensearchapi/api_script-put.go
@@ -11,7 +11,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // ScriptPutReq represents possible options for the put script request
diff --git a/opensearchapi/api_scroll-delete.go b/opensearchapi/api_scroll-delete.go
index e341aa0..6281705 100644
--- a/opensearchapi/api_scroll-delete.go
+++ b/opensearchapi/api_scroll-delete.go
@@ -11,7 +11,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // ScrollDeleteReq represents possible options for the index create request
diff --git a/opensearchapi/api_scroll-get.go b/opensearchapi/api_scroll-get.go
index d173ec6..6029705 100644
--- a/opensearchapi/api_scroll-get.go
+++ b/opensearchapi/api_scroll-get.go
@@ -11,7 +11,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // ScrollGetReq represents possible options for the index create request
diff --git a/opensearchapi/api_search-template.go b/opensearchapi/api_search-template.go
index e93ca9c..f3c7715 100644
--- a/opensearchapi/api_search-template.go
+++ b/opensearchapi/api_search-template.go
@@ -12,7 +12,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // SearchTemplate executes a /_search request with the optional SearchTemplateReq
diff --git a/opensearchapi/api_search.go b/opensearchapi/api_search.go
index 500efc3..c4551db 100644
--- a/opensearchapi/api_search.go
+++ b/opensearchapi/api_search.go
@@ -14,7 +14,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // Search executes a /_search request with the optional SearchReq
diff --git a/opensearchapi/api_search_shards.go b/opensearchapi/api_search_shards.go
index 2832514..28c2c80 100644
--- a/opensearchapi/api_search_shards.go
+++ b/opensearchapi/api_search_shards.go
@@ -12,7 +12,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // SearchShards executes a /_search request with the optional SearchShardsReq
diff --git a/opensearchapi/api_snapshot-clone.go b/opensearchapi/api_snapshot-clone.go
index 1922664..c12a6cc 100644
--- a/opensearchapi/api_snapshot-clone.go
+++ b/opensearchapi/api_snapshot-clone.go
@@ -11,7 +11,7 @@ import (
 	"io"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // SnapshotCloneReq represents possible options for the index create request
diff --git a/opensearchapi/api_snapshot-create.go b/opensearchapi/api_snapshot-create.go
index 921cdea..986b2c2 100644
--- a/opensearchapi/api_snapshot-create.go
+++ b/opensearchapi/api_snapshot-create.go
@@ -12,7 +12,7 @@ import (
 	"io"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // SnapshotCreateReq represents possible options for the index create request
diff --git a/opensearchapi/api_snapshot-delete.go b/opensearchapi/api_snapshot-delete.go
index 142c1e5..2f13553 100644
--- a/opensearchapi/api_snapshot-delete.go
+++ b/opensearchapi/api_snapshot-delete.go
@@ -11,7 +11,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // SnapshotDeleteReq represents possible options for the index create request
diff --git a/opensearchapi/api_snapshot-get.go b/opensearchapi/api_snapshot-get.go
index 5b37bea..de25086 100644
--- a/opensearchapi/api_snapshot-get.go
+++ b/opensearchapi/api_snapshot-get.go
@@ -13,7 +13,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // SnapshotGetReq represents possible options for the index create request
diff --git a/opensearchapi/api_snapshot-restore.go b/opensearchapi/api_snapshot-restore.go
index ae97dc0..2264e43 100644
--- a/opensearchapi/api_snapshot-restore.go
+++ b/opensearchapi/api_snapshot-restore.go
@@ -11,7 +11,7 @@ import (
 	"io"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // SnapshotRestoreReq represents possible options for the index create request
diff --git a/opensearchapi/api_snapshot-status.go b/opensearchapi/api_snapshot-status.go
index 3907446..e63caeb 100644
--- a/opensearchapi/api_snapshot-status.go
+++ b/opensearchapi/api_snapshot-status.go
@@ -11,7 +11,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // SnapshotStatusReq represents possible options for the index create request
diff --git a/opensearchapi/api_snapshot_repository-cleanup.go b/opensearchapi/api_snapshot_repository-cleanup.go
index 399beb0..072a9ca 100644
--- a/opensearchapi/api_snapshot_repository-cleanup.go
+++ b/opensearchapi/api_snapshot_repository-cleanup.go
@@ -10,7 +10,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // SnapshotRepositoryCleanupReq represents possible options for the index create request
diff --git a/opensearchapi/api_snapshot_repository-create.go b/opensearchapi/api_snapshot_repository-create.go
index 8fc739a..ba01e11 100644
--- a/opensearchapi/api_snapshot_repository-create.go
+++ b/opensearchapi/api_snapshot_repository-create.go
@@ -11,7 +11,7 @@ import (
 	"io"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // SnapshotRepositoryCreateReq represents possible options for the index create request
diff --git a/opensearchapi/api_snapshot_repository-delete.go b/opensearchapi/api_snapshot_repository-delete.go
index bfd522a..4a51de5 100644
--- a/opensearchapi/api_snapshot_repository-delete.go
+++ b/opensearchapi/api_snapshot_repository-delete.go
@@ -10,7 +10,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // SnapshotRepositoryDeleteReq represents possible options for the index create request
diff --git a/opensearchapi/api_snapshot_repository-get.go b/opensearchapi/api_snapshot_repository-get.go
index b1027c2..f042396 100644
--- a/opensearchapi/api_snapshot_repository-get.go
+++ b/opensearchapi/api_snapshot_repository-get.go
@@ -10,7 +10,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // SnapshotRepositoryGetReq represents possible options for the index create request
diff --git a/opensearchapi/api_snapshot_repository-verify.go b/opensearchapi/api_snapshot_repository-verify.go
index 4ca7e19..5542af7 100644
--- a/opensearchapi/api_snapshot_repository-verify.go
+++ b/opensearchapi/api_snapshot_repository-verify.go
@@ -10,7 +10,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // SnapshotRepositoryVerifyReq represents possible options for the index create request
diff --git a/opensearchapi/api_tasks-cancel.go b/opensearchapi/api_tasks-cancel.go
index ef19a5e..4c3d059 100644
--- a/opensearchapi/api_tasks-cancel.go
+++ b/opensearchapi/api_tasks-cancel.go
@@ -11,7 +11,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // TasksCancelReq represents possible options for the index create request
diff --git a/opensearchapi/api_tasks-get.go b/opensearchapi/api_tasks-get.go
index e4a0eb0..45411fa 100644
--- a/opensearchapi/api_tasks-get.go
+++ b/opensearchapi/api_tasks-get.go
@@ -11,7 +11,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // TasksGetReq represents possible options for the index create request
diff --git a/opensearchapi/api_tasks-list.go b/opensearchapi/api_tasks-list.go
index 2c86fdf..0332f85 100644
--- a/opensearchapi/api_tasks-list.go
+++ b/opensearchapi/api_tasks-list.go
@@ -9,7 +9,7 @@ package opensearchapi
 import (
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // TasksListReq represents possible options for the index create request
diff --git a/opensearchapi/api_template-create.go b/opensearchapi/api_template-create.go
index db971f2..fa974f0 100644
--- a/opensearchapi/api_template-create.go
+++ b/opensearchapi/api_template-create.go
@@ -11,7 +11,7 @@ import (
 	"io"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // TemplateCreateReq represents possible options for the index create request
diff --git a/opensearchapi/api_template-delete.go b/opensearchapi/api_template-delete.go
index ee82b0f..5bc7f0b 100644
--- a/opensearchapi/api_template-delete.go
+++ b/opensearchapi/api_template-delete.go
@@ -10,7 +10,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // TemplateDeleteReq represents possible options for the index create request
diff --git a/opensearchapi/api_template-exists.go b/opensearchapi/api_template-exists.go
index 201b146..a740618 100644
--- a/opensearchapi/api_template-exists.go
+++ b/opensearchapi/api_template-exists.go
@@ -10,7 +10,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // TemplateExistsReq represents possible options for the index create request
diff --git a/opensearchapi/api_template-get.go b/opensearchapi/api_template-get.go
index fb8e157..95b2d66 100644
--- a/opensearchapi/api_template-get.go
+++ b/opensearchapi/api_template-get.go
@@ -12,7 +12,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // TemplateGetReq represents possible options for the index create request
diff --git a/opensearchapi/api_template.go b/opensearchapi/api_template.go
index 799c2bf..be9f1b4 100644
--- a/opensearchapi/api_template.go
+++ b/opensearchapi/api_template.go
@@ -9,7 +9,7 @@ package opensearchapi
 import (
 	"context"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 type templateClient struct {
diff --git a/opensearchapi/api_termvectors.go b/opensearchapi/api_termvectors.go
index 37bc120..d25d4b3 100644
--- a/opensearchapi/api_termvectors.go
+++ b/opensearchapi/api_termvectors.go
@@ -13,7 +13,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // Termvectors executes a /_termvectors request with the required TermvectorsReq
diff --git a/opensearchapi/api_update.go b/opensearchapi/api_update.go
index f0c87b2..54ab8e1 100644
--- a/opensearchapi/api_update.go
+++ b/opensearchapi/api_update.go
@@ -12,7 +12,7 @@ import (
 	"io"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // Update executes a /_update request with the optional UpdateReq
diff --git a/opensearchapi/api_update_by_query.go b/opensearchapi/api_update_by_query.go
index 2627a6b..ff0b5b8 100644
--- a/opensearchapi/api_update_by_query.go
+++ b/opensearchapi/api_update_by_query.go
@@ -14,7 +14,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // UpdateByQuery executes a /_update_by_query request with the optional UpdateByQueryReq
diff --git a/opensearchapi/api_update_by_query_rethrottle.go b/opensearchapi/api_update_by_query_rethrottle.go
index 8a882f3..5c72cf7 100644
--- a/opensearchapi/api_update_by_query_rethrottle.go
+++ b/opensearchapi/api_update_by_query_rethrottle.go
@@ -12,7 +12,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // UpdateByQueryRethrottle executes a / request with the optional UpdateByQueryRethrottleReq
diff --git a/opensearchapi/inspect.go b/opensearchapi/inspect.go
index 616b612..47eabba 100644
--- a/opensearchapi/inspect.go
+++ b/opensearchapi/inspect.go
@@ -6,7 +6,7 @@
 
 package opensearchapi
 
-import "github.com/opensearch-project/opensearch-go/v3"
+import "github.com/opensearch-project/opensearch-go/v4"
 
 // Inspect represents the struct returned by Inspect() func, its main use is to return the opensearch.Response to the user
 type Inspect struct {
diff --git a/opensearchapi/opensearchapi.go b/opensearchapi/opensearchapi.go
index 6f3daed..d23d5ab 100644
--- a/opensearchapi/opensearchapi.go
+++ b/opensearchapi/opensearchapi.go
@@ -12,7 +12,7 @@ import (
 	"strconv"
 	"time"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // Config represents the client configuration
diff --git a/opensearchtransport/opensearchtransport.go b/opensearchtransport/opensearchtransport.go
index 504cfc6..ac8ad05 100644
--- a/opensearchtransport/opensearchtransport.go
+++ b/opensearchtransport/opensearchtransport.go
@@ -42,8 +42,8 @@ import (
 	"sync"
 	"time"
 
-	"github.com/opensearch-project/opensearch-go/v3/internal/version"
-	"github.com/opensearch-project/opensearch-go/v3/signer"
+	"github.com/opensearch-project/opensearch-go/v4/internal/version"
+	"github.com/opensearch-project/opensearch-go/v4/signer"
 )
 
 const (
diff --git a/opensearchutil/bulk_indexer.go b/opensearchutil/bulk_indexer.go
index bbe94bd..380ed70 100644
--- a/opensearchutil/bulk_indexer.go
+++ b/opensearchutil/bulk_indexer.go
@@ -38,7 +38,7 @@ import (
 	"sync/atomic"
 	"time"
 
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
 )
 
 const defaultFlushInterval = 30 * time.Second
diff --git a/plugins/ism/api.go b/plugins/ism/api.go
index 53e23a7..912ba95 100644
--- a/plugins/ism/api.go
+++ b/plugins/ism/api.go
@@ -10,7 +10,7 @@ import (
 	"context"
 	"fmt"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // Config represents the client configuration
diff --git a/plugins/ism/api_add.go b/plugins/ism/api_add.go
index 4df0e2e..05fe5bb 100644
--- a/plugins/ism/api_add.go
+++ b/plugins/ism/api_add.go
@@ -13,7 +13,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // Add executes a add policy request with the required AddReq
diff --git a/plugins/ism/api_change.go b/plugins/ism/api_change.go
index bb06477..2cd66a1 100644
--- a/plugins/ism/api_change.go
+++ b/plugins/ism/api_change.go
@@ -13,7 +13,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // Change executes a change policy request with the required ChangeReq
diff --git a/plugins/ism/api_explain.go b/plugins/ism/api_explain.go
index 51c40b6..2e298c8 100644
--- a/plugins/ism/api_explain.go
+++ b/plugins/ism/api_explain.go
@@ -12,7 +12,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // Explain executes a explain policy request with the optional ExplainReq
diff --git a/plugins/ism/api_policies-delete.go b/plugins/ism/api_policies-delete.go
index b0460cd..0516450 100644
--- a/plugins/ism/api_policies-delete.go
+++ b/plugins/ism/api_policies-delete.go
@@ -10,7 +10,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // PoliciesDeleteReq represents possible options for the policies get request
diff --git a/plugins/ism/api_policies-get.go b/plugins/ism/api_policies-get.go
index 0c4b8f8..87e263f 100644
--- a/plugins/ism/api_policies-get.go
+++ b/plugins/ism/api_policies-get.go
@@ -10,7 +10,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // PoliciesGetReq represents possible options for the policies get request
diff --git a/plugins/ism/api_policies-put.go b/plugins/ism/api_policies-put.go
index ee37be1..5fa4de8 100644
--- a/plugins/ism/api_policies-put.go
+++ b/plugins/ism/api_policies-put.go
@@ -12,7 +12,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // PoliciesPutReq represents possible options for the policies get request
diff --git a/plugins/ism/api_remove.go b/plugins/ism/api_remove.go
index 96d29b6..f054907 100644
--- a/plugins/ism/api_remove.go
+++ b/plugins/ism/api_remove.go
@@ -11,7 +11,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // Remove executes a remove policy request with the required RemoveReq
diff --git a/plugins/ism/api_retry.go b/plugins/ism/api_retry.go
index 9e527bf..df4aaf0 100644
--- a/plugins/ism/api_retry.go
+++ b/plugins/ism/api_retry.go
@@ -14,7 +14,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // Retry executes a retry policy request with the required RetryReq
diff --git a/plugins/ism/inspect.go b/plugins/ism/inspect.go
index 2c27702..4a2b0ec 100644
--- a/plugins/ism/inspect.go
+++ b/plugins/ism/inspect.go
@@ -6,7 +6,7 @@
 
 package ism
 
-import "github.com/opensearch-project/opensearch-go/v3"
+import "github.com/opensearch-project/opensearch-go/v4"
 
 // Inspect represents the struct returned by Inspect() func, its main use is to return the opensearch.Response to the user
 type Inspect struct {
diff --git a/plugins/security/api.go b/plugins/security/api.go
index 77202e7..cd72932 100644
--- a/plugins/security/api.go
+++ b/plugins/security/api.go
@@ -10,7 +10,7 @@ import (
 	"context"
 	"fmt"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // Config represents the client configuration
diff --git a/plugins/security/api_account-get.go b/plugins/security/api_account-get.go
index 52f6009..b68f3db 100644
--- a/plugins/security/api_account-get.go
+++ b/plugins/security/api_account-get.go
@@ -9,7 +9,7 @@ package security
 import (
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // AccountGetReq represents possible options for the account get request
diff --git a/plugins/security/api_account-put.go b/plugins/security/api_account-put.go
index b38c16c..7321861 100644
--- a/plugins/security/api_account-put.go
+++ b/plugins/security/api_account-put.go
@@ -11,7 +11,7 @@ import (
 	"encoding/json"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // AccountPutReq represents possible options for the account put request
diff --git a/plugins/security/api_actiongroups-delete.go b/plugins/security/api_actiongroups-delete.go
index fc89b39..eef750a 100644
--- a/plugins/security/api_actiongroups-delete.go
+++ b/plugins/security/api_actiongroups-delete.go
@@ -10,7 +10,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // ActionGroupsDeleteReq represents possible options for the actiongroups delete request
diff --git a/plugins/security/api_actiongroups-get.go b/plugins/security/api_actiongroups-get.go
index 5b8fd07..1e9fc83 100644
--- a/plugins/security/api_actiongroups-get.go
+++ b/plugins/security/api_actiongroups-get.go
@@ -10,7 +10,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // ActionGroupsGetReq represents possible options for the actiongroups get request
diff --git a/plugins/security/api_actiongroups-patch.go b/plugins/security/api_actiongroups-patch.go
index 225558e..4ea1165 100644
--- a/plugins/security/api_actiongroups-patch.go
+++ b/plugins/security/api_actiongroups-patch.go
@@ -12,7 +12,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // ActionGroupsPatchReq represents possible options for the actiongroups patch request
diff --git a/plugins/security/api_actiongroups-put.go b/plugins/security/api_actiongroups-put.go
index 9ff52cb..a99a8e2 100644
--- a/plugins/security/api_actiongroups-put.go
+++ b/plugins/security/api_actiongroups-put.go
@@ -12,7 +12,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // ActionGroupsPutReq represents possible options for the actiongroups put request
diff --git a/plugins/security/api_audit-get.go b/plugins/security/api_audit-get.go
index eee6ffe..8d8a560 100644
--- a/plugins/security/api_audit-get.go
+++ b/plugins/security/api_audit-get.go
@@ -9,7 +9,7 @@ package security
 import (
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // AuditGetReq represents possible options for the audit get request
diff --git a/plugins/security/api_audit-patch.go b/plugins/security/api_audit-patch.go
index 734f086..4a608db 100644
--- a/plugins/security/api_audit-patch.go
+++ b/plugins/security/api_audit-patch.go
@@ -11,7 +11,7 @@ import (
 	"encoding/json"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // AuditPatchReq represents possible options for the audit patch request
diff --git a/plugins/security/api_audit-put.go b/plugins/security/api_audit-put.go
index e1d327f..0a85efc 100644
--- a/plugins/security/api_audit-put.go
+++ b/plugins/security/api_audit-put.go
@@ -11,7 +11,7 @@ import (
 	"encoding/json"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // AuditPutReq represents possible options for the audit put request
diff --git a/plugins/security/api_flushcache.go b/plugins/security/api_flushcache.go
index 05b1e1e..5fc289f 100644
--- a/plugins/security/api_flushcache.go
+++ b/plugins/security/api_flushcache.go
@@ -10,7 +10,7 @@ import (
 	"context"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // FlushCache executes a flush cache request with the optional FlushCacheReq
diff --git a/plugins/security/api_health.go b/plugins/security/api_health.go
index 68d4c53..709bda6 100644
--- a/plugins/security/api_health.go
+++ b/plugins/security/api_health.go
@@ -10,7 +10,7 @@ import (
 	"context"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // Health executes a get health request with the optional HealthReq
diff --git a/plugins/security/api_internalusers-delete.go b/plugins/security/api_internalusers-delete.go
index 36a13b9..5e7d44e 100644
--- a/plugins/security/api_internalusers-delete.go
+++ b/plugins/security/api_internalusers-delete.go
@@ -10,7 +10,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // InternalUsersDeleteReq represents possible options for the internalusers delete request
diff --git a/plugins/security/api_internalusers-get.go b/plugins/security/api_internalusers-get.go
index e93dbf9..9444950 100644
--- a/plugins/security/api_internalusers-get.go
+++ b/plugins/security/api_internalusers-get.go
@@ -10,7 +10,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // InternalUsersGetReq represents possible options for the internal users get request
diff --git a/plugins/security/api_internalusers-patch.go b/plugins/security/api_internalusers-patch.go
index 79c8a9e..20c29ad 100644
--- a/plugins/security/api_internalusers-patch.go
+++ b/plugins/security/api_internalusers-patch.go
@@ -12,7 +12,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // InternalUsersPatchReq represents possible options for the internalusers patch request
diff --git a/plugins/security/api_internalusers-put.go b/plugins/security/api_internalusers-put.go
index 18e6635..01b04b2 100644
--- a/plugins/security/api_internalusers-put.go
+++ b/plugins/security/api_internalusers-put.go
@@ -12,7 +12,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // InternalUsersPutReq represents possible options for the internalusers put request
diff --git a/plugins/security/api_nodesdn-delete.go b/plugins/security/api_nodesdn-delete.go
index ce73c3c..2371eb8 100644
--- a/plugins/security/api_nodesdn-delete.go
+++ b/plugins/security/api_nodesdn-delete.go
@@ -10,7 +10,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // NodesDNDeleteReq represents possible options for the nodesdn delete request
diff --git a/plugins/security/api_nodesdn-get.go b/plugins/security/api_nodesdn-get.go
index 97a6b19..fbe3e42 100644
--- a/plugins/security/api_nodesdn-get.go
+++ b/plugins/security/api_nodesdn-get.go
@@ -10,7 +10,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // NodesDNGetReq represents possible options for the nodes dn get request
diff --git a/plugins/security/api_nodesdn-patch.go b/plugins/security/api_nodesdn-patch.go
index 30c0d50..02bd6fe 100644
--- a/plugins/security/api_nodesdn-patch.go
+++ b/plugins/security/api_nodesdn-patch.go
@@ -12,7 +12,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // NodesDNPatchReq represents possible options for the nodesdn patch request
diff --git a/plugins/security/api_nodesdn-put.go b/plugins/security/api_nodesdn-put.go
index a7328bf..0b1225f 100644
--- a/plugins/security/api_nodesdn-put.go
+++ b/plugins/security/api_nodesdn-put.go
@@ -12,7 +12,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // NodesDNPutReq represents possible options for the nodesdn put request
diff --git a/plugins/security/api_roles-delete.go b/plugins/security/api_roles-delete.go
index 59983bb..a205b9e 100644
--- a/plugins/security/api_roles-delete.go
+++ b/plugins/security/api_roles-delete.go
@@ -10,7 +10,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // RolesDeleteReq represents possible options for the roles delete request
diff --git a/plugins/security/api_roles-get.go b/plugins/security/api_roles-get.go
index ae94756..3108d49 100644
--- a/plugins/security/api_roles-get.go
+++ b/plugins/security/api_roles-get.go
@@ -10,7 +10,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // RolesGetReq represents possible options for the roles get request
diff --git a/plugins/security/api_roles-patch.go b/plugins/security/api_roles-patch.go
index ecfd214..63e0e08 100644
--- a/plugins/security/api_roles-patch.go
+++ b/plugins/security/api_roles-patch.go
@@ -12,7 +12,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // RolesPatchReq represents possible options for the roles patch request
diff --git a/plugins/security/api_roles-put.go b/plugins/security/api_roles-put.go
index 92144cb..a00fd7f 100644
--- a/plugins/security/api_roles-put.go
+++ b/plugins/security/api_roles-put.go
@@ -12,7 +12,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // RolesPutReq represents possible options for the roles put request
diff --git a/plugins/security/api_rolesmapping-delete.go b/plugins/security/api_rolesmapping-delete.go
index 3e74ca9..c7649a4 100644
--- a/plugins/security/api_rolesmapping-delete.go
+++ b/plugins/security/api_rolesmapping-delete.go
@@ -10,7 +10,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // RolesMappingDeleteReq represents possible options for the roles delete request
diff --git a/plugins/security/api_rolesmapping-get.go b/plugins/security/api_rolesmapping-get.go
index d50114e..cc18ca7 100644
--- a/plugins/security/api_rolesmapping-get.go
+++ b/plugins/security/api_rolesmapping-get.go
@@ -10,7 +10,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // RolesMappingGetReq represents possible options for the rolesmapping get request
diff --git a/plugins/security/api_rolesmapping-patch.go b/plugins/security/api_rolesmapping-patch.go
index ba5a4d9..f10c28b 100644
--- a/plugins/security/api_rolesmapping-patch.go
+++ b/plugins/security/api_rolesmapping-patch.go
@@ -12,7 +12,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // RolesMappingPatchReq represents possible options for the rolesmapping patch request
diff --git a/plugins/security/api_rolesmapping-put.go b/plugins/security/api_rolesmapping-put.go
index c3ddf8e..bba96a1 100644
--- a/plugins/security/api_rolesmapping-put.go
+++ b/plugins/security/api_rolesmapping-put.go
@@ -12,7 +12,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // RolesMappingPutReq represents possible options for the rolesmapping put request
diff --git a/plugins/security/api_securityconfig-get.go b/plugins/security/api_securityconfig-get.go
index 89c8f6f..9c26e8e 100644
--- a/plugins/security/api_securityconfig-get.go
+++ b/plugins/security/api_securityconfig-get.go
@@ -10,7 +10,7 @@ import (
 	"encoding/json"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // ConfigGetReq represents possible options for the securityconfig get request
diff --git a/plugins/security/api_securityconfig-patch.go b/plugins/security/api_securityconfig-patch.go
index 083ba14..1bb5a86 100644
--- a/plugins/security/api_securityconfig-patch.go
+++ b/plugins/security/api_securityconfig-patch.go
@@ -11,7 +11,7 @@ import (
 	"encoding/json"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // ConfigPatchReq represents possible options for the securityconfig patch request
diff --git a/plugins/security/api_securityconfig-put.go b/plugins/security/api_securityconfig-put.go
index 9fd628c..f6aa991 100644
--- a/plugins/security/api_securityconfig-put.go
+++ b/plugins/security/api_securityconfig-put.go
@@ -11,7 +11,7 @@ import (
 	"encoding/json"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // ConfigPutReq represents possible options for the securityconfig get request
diff --git a/plugins/security/api_ssl-get.go b/plugins/security/api_ssl-get.go
index d145f2d..0db32e5 100644
--- a/plugins/security/api_ssl-get.go
+++ b/plugins/security/api_ssl-get.go
@@ -10,7 +10,7 @@ import (
 	"net/http"
 	"time"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // SSLGetReq represents possible options for the ssl/certs get request
diff --git a/plugins/security/api_ssl-http-reload.go b/plugins/security/api_ssl-http-reload.go
index 1fb941e..510469e 100644
--- a/plugins/security/api_ssl-http-reload.go
+++ b/plugins/security/api_ssl-http-reload.go
@@ -9,7 +9,7 @@ package security
 import (
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // SSLHTTPReloadReq represents possible options for the http ssl reload request
diff --git a/plugins/security/api_ssl-transport-reload.go b/plugins/security/api_ssl-transport-reload.go
index 0c1c7e0..c9cce06 100644
--- a/plugins/security/api_ssl-transport-reload.go
+++ b/plugins/security/api_ssl-transport-reload.go
@@ -9,7 +9,7 @@ package security
 import (
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // SSLTransportReloadReq represents possible options for the transport ssl reload request
diff --git a/plugins/security/api_tenants-delete.go b/plugins/security/api_tenants-delete.go
index 6236136..da36de4 100644
--- a/plugins/security/api_tenants-delete.go
+++ b/plugins/security/api_tenants-delete.go
@@ -10,7 +10,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // TenantsDeleteReq represents possible options for the tenants delete request
diff --git a/plugins/security/api_tenants-get.go b/plugins/security/api_tenants-get.go
index 5c1d30e..fdabcbd 100644
--- a/plugins/security/api_tenants-get.go
+++ b/plugins/security/api_tenants-get.go
@@ -10,7 +10,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // TenantsGetReq represents possible options for the tenants get request
diff --git a/plugins/security/api_tenants-patch.go b/plugins/security/api_tenants-patch.go
index 7285264..cf7ff18 100644
--- a/plugins/security/api_tenants-patch.go
+++ b/plugins/security/api_tenants-patch.go
@@ -12,7 +12,7 @@ import (
 	"net/http"
 	"strings"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // TenantsPatchReq represents possible options for the tenants patch request
diff --git a/plugins/security/api_tenants-put.go b/plugins/security/api_tenants-put.go
index 5dd3af5..83b6a4e 100644
--- a/plugins/security/api_tenants-put.go
+++ b/plugins/security/api_tenants-put.go
@@ -12,7 +12,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 // TenantsPutReq represents possible options for the tenants put request
diff --git a/plugins/security/inspect.go b/plugins/security/inspect.go
index cf3dfad..c8abca2 100644
--- a/plugins/security/inspect.go
+++ b/plugins/security/inspect.go
@@ -6,7 +6,7 @@
 
 package security
 
-import "github.com/opensearch-project/opensearch-go/v3"
+import "github.com/opensearch-project/opensearch-go/v4"
 
 // Inspect represents the struct returned by Inspect() func, its main use is to return the opensearch.Response to the user
 type Inspect struct {
diff --git a/signer/awsv2/sdkv2signer.go b/signer/awsv2/sdkv2signer.go
index a208ecc..6eda55c 100644
--- a/signer/awsv2/sdkv2signer.go
+++ b/signer/awsv2/sdkv2signer.go
@@ -24,7 +24,7 @@ import (
 	"github.com/aws/aws-sdk-go-v2/aws"
 	awsSignerV4 "github.com/aws/aws-sdk-go-v2/aws/signer/v4"
 
-	"github.com/opensearch-project/opensearch-go/v3/signer"
+	"github.com/opensearch-project/opensearch-go/v4/signer"
 )
 
 const (


Test patch:
diff --git a/error_test.go b/error_test.go
index 56dac18..5af8152 100644
--- a/error_test.go
+++ b/error_test.go
@@ -21,7 +21,7 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 func TestError(t *testing.T) {
diff --git a/internal/test/helper.go b/internal/test/helper.go
index ad9d546..da03ca1 100644
--- a/internal/test/helper.go
+++ b/internal/test/helper.go
@@ -20,8 +20,8 @@ import (
 	"github.com/stretchr/testify/require"
 	"github.com/wI2L/jsondiff"
 
-	"github.com/opensearch-project/opensearch-go/v3"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
+	"github.com/opensearch-project/opensearch-go/v4"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
 )
 
 // NewClient returns an opensearchapi.Client that is adjusted for the wanted test case
diff --git a/opensearch_benchmark_test.go b/opensearch_benchmark_test.go
index a4234e5..ccf2cbe 100644
--- a/opensearch_benchmark_test.go
+++ b/opensearch_benchmark_test.go
@@ -37,8 +37,8 @@ import (
 	"strings"
 	"testing"
 
-	"github.com/opensearch-project/opensearch-go/v3"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
+	"github.com/opensearch-project/opensearch-go/v4"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
 )
 
 type FakeTransport struct {
diff --git a/opensearch_example_test.go b/opensearch_example_test.go
index fbe42d8..6d358db 100644
--- a/opensearch_example_test.go
+++ b/opensearch_example_test.go
@@ -37,9 +37,9 @@ import (
 	"os"
 	"time"
 
-	"github.com/opensearch-project/opensearch-go/v3"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchtransport"
+	"github.com/opensearch-project/opensearch-go/v4"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchtransport"
 )
 
 func init() {
diff --git a/opensearch_integration_test.go b/opensearch_integration_test.go
index 1764a71..67e2003 100644
--- a/opensearch_integration_test.go
+++ b/opensearch_integration_test.go
@@ -42,10 +42,10 @@ import (
 
 	"github.com/stretchr/testify/require"
 
-	"github.com/opensearch-project/opensearch-go/v3"
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchtransport"
+	"github.com/opensearch-project/opensearch-go/v4"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchtransport"
 )
 
 func TestClientTransport(t *testing.T) {
diff --git a/opensearch_internal_test.go b/opensearch_internal_test.go
index 383b0ce..d5fa3ac 100644
--- a/opensearch_internal_test.go
+++ b/opensearch_internal_test.go
@@ -43,7 +43,7 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	"github.com/opensearch-project/opensearch-go/v3/opensearchtransport"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchtransport"
 )
 
 var called int
diff --git a/opensearchapi/api_aliases_test.go b/opensearchapi/api_aliases_test.go
index 8ae62c8..f6da666 100644
--- a/opensearchapi/api_aliases_test.go
+++ b/opensearchapi/api_aliases_test.go
@@ -14,9 +14,9 @@ import (
 
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/opensearchapi/internal/test"
 )
 
 func TestAliases(t *testing.T) {
diff --git a/opensearchapi/api_bulk_test.go b/opensearchapi/api_bulk_test.go
index 5c33737..67d9293 100644
--- a/opensearchapi/api_bulk_test.go
+++ b/opensearchapi/api_bulk_test.go
@@ -16,9 +16,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/opensearchapi/internal/test"
 )
 
 func TestBulkClient(t *testing.T) {
diff --git a/opensearchapi/api_cat_test.go b/opensearchapi/api_cat_test.go
index 716fbfc..223ddec 100644
--- a/opensearchapi/api_cat_test.go
+++ b/opensearchapi/api_cat_test.go
@@ -15,9 +15,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/opensearchapi/internal/test"
 )
 
 func TestCatClient(t *testing.T) {
diff --git a/opensearchapi/api_cluster_test.go b/opensearchapi/api_cluster_test.go
index 7c32d49..a2c6508 100644
--- a/opensearchapi/api_cluster_test.go
+++ b/opensearchapi/api_cluster_test.go
@@ -15,9 +15,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/opensearchapi/internal/test"
 )
 
 func TestClusterClient(t *testing.T) {
diff --git a/opensearchapi/api_component_template_test.go b/opensearchapi/api_component_template_test.go
index c35a417..2950990 100644
--- a/opensearchapi/api_component_template_test.go
+++ b/opensearchapi/api_component_template_test.go
@@ -15,9 +15,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/opensearchapi/internal/test"
 )
 
 func TestComponentTemplateClient(t *testing.T) {
diff --git a/opensearchapi/api_dangling_test.go b/opensearchapi/api_dangling_test.go
index 651a294..095d63b 100644
--- a/opensearchapi/api_dangling_test.go
+++ b/opensearchapi/api_dangling_test.go
@@ -20,10 +20,10 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	"github.com/opensearch-project/opensearch-go/v3"
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/opensearchapi/internal/test"
 )
 
 func TestDanglingClient(t *testing.T) {
diff --git a/opensearchapi/api_datastream_test.go b/opensearchapi/api_datastream_test.go
index 3ea2739..599b7fd 100644
--- a/opensearchapi/api_datastream_test.go
+++ b/opensearchapi/api_datastream_test.go
@@ -15,9 +15,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/opensearchapi/internal/test"
 )
 
 func TestDataStreamClient(t *testing.T) {
diff --git a/opensearchapi/api_document_test.go b/opensearchapi/api_document_test.go
index 77dac25..e639398 100644
--- a/opensearchapi/api_document_test.go
+++ b/opensearchapi/api_document_test.go
@@ -17,10 +17,10 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchutil"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/opensearchapi/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchutil"
 )
 
 func TestDocumentClient(t *testing.T) {
diff --git a/opensearchapi/api_index_template_test.go b/opensearchapi/api_index_template_test.go
index 731197e..a2c58ed 100644
--- a/opensearchapi/api_index_template_test.go
+++ b/opensearchapi/api_index_template_test.go
@@ -15,9 +15,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/opensearchapi/internal/test"
 )
 
 func TestIndexTemplateClient(t *testing.T) {
diff --git a/opensearchapi/api_index_test.go b/opensearchapi/api_index_test.go
index 611f626..b06323a 100644
--- a/opensearchapi/api_index_test.go
+++ b/opensearchapi/api_index_test.go
@@ -17,10 +17,10 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	"github.com/opensearch-project/opensearch-go/v3"
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/opensearchapi/internal/test"
 )
 
 func TestIndexClient(t *testing.T) {
diff --git a/opensearchapi/api_indices_test.go b/opensearchapi/api_indices_test.go
index 55cd6ac..bf9e818 100644
--- a/opensearchapi/api_indices_test.go
+++ b/opensearchapi/api_indices_test.go
@@ -15,9 +15,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/opensearchapi/internal/test"
 )
 
 func TestIndicesClient(t *testing.T) {
diff --git a/opensearchapi/api_info_test.go b/opensearchapi/api_info_test.go
index 90aaa4a..b04eaba 100644
--- a/opensearchapi/api_info_test.go
+++ b/opensearchapi/api_info_test.go
@@ -14,9 +14,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/opensearchapi/internal/test"
 )
 
 func TestInfo(t *testing.T) {
diff --git a/opensearchapi/api_ingest_test.go b/opensearchapi/api_ingest_test.go
index 6317596..6591a23 100644
--- a/opensearchapi/api_ingest_test.go
+++ b/opensearchapi/api_ingest_test.go
@@ -15,9 +15,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/opensearchapi/internal/test"
 )
 
 func TestIngestClient(t *testing.T) {
diff --git a/opensearchapi/api_mget_test.go b/opensearchapi/api_mget_test.go
index 64e380d..be640d6 100644
--- a/opensearchapi/api_mget_test.go
+++ b/opensearchapi/api_mget_test.go
@@ -16,9 +16,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/opensearchapi/internal/test"
 )
 
 func TestMGet(t *testing.T) {
diff --git a/opensearchapi/api_msearch-template_test.go b/opensearchapi/api_msearch-template_test.go
index a968278..9d79279 100644
--- a/opensearchapi/api_msearch-template_test.go
+++ b/opensearchapi/api_msearch-template_test.go
@@ -16,9 +16,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/opensearchapi/internal/test"
 )
 
 func TestMSearchTemplate(t *testing.T) {
diff --git a/opensearchapi/api_msearch_test.go b/opensearchapi/api_msearch_test.go
index ddd7ee3..319c9b3 100644
--- a/opensearchapi/api_msearch_test.go
+++ b/opensearchapi/api_msearch_test.go
@@ -16,9 +16,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/opensearchapi/internal/test"
 )
 
 func TestMSearch(t *testing.T) {
diff --git a/opensearchapi/api_mtermvectors_test.go b/opensearchapi/api_mtermvectors_test.go
index 2d4b91a..c74f302 100644
--- a/opensearchapi/api_mtermvectors_test.go
+++ b/opensearchapi/api_mtermvectors_test.go
@@ -16,9 +16,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/opensearchapi/internal/test"
 )
 
 func TestMTermvectors(t *testing.T) {
diff --git a/opensearchapi/api_nodes_test.go b/opensearchapi/api_nodes_test.go
index bbd2ea1..bba670d 100644
--- a/opensearchapi/api_nodes_test.go
+++ b/opensearchapi/api_nodes_test.go
@@ -14,9 +14,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/opensearchapi/internal/test"
 )
 
 func TestNodes(t *testing.T) {
diff --git a/opensearchapi/api_ping_test.go b/opensearchapi/api_ping_test.go
index a766611..74cb00f 100644
--- a/opensearchapi/api_ping_test.go
+++ b/opensearchapi/api_ping_test.go
@@ -14,9 +14,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/opensearchapi/internal/test"
 )
 
 func TestPing(t *testing.T) {
diff --git a/opensearchapi/api_point_in_time_test.go b/opensearchapi/api_point_in_time_test.go
index 38e30d7..c642a8f 100644
--- a/opensearchapi/api_point_in_time_test.go
+++ b/opensearchapi/api_point_in_time_test.go
@@ -15,9 +15,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/opensearchapi/internal/test"
 )
 
 func TestPointInTimeClient(t *testing.T) {
diff --git a/opensearchapi/api_rank_eval_test.go b/opensearchapi/api_rank_eval_test.go
index 5e1795f..dfed0fe 100644
--- a/opensearchapi/api_rank_eval_test.go
+++ b/opensearchapi/api_rank_eval_test.go
@@ -16,9 +16,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/opensearchapi/internal/test"
 )
 
 func TestRankEval(t *testing.T) {
diff --git a/opensearchapi/api_reindex_rethrottle_test.go b/opensearchapi/api_reindex_rethrottle_test.go
index 7409f28..e6594d0 100644
--- a/opensearchapi/api_reindex_rethrottle_test.go
+++ b/opensearchapi/api_reindex_rethrottle_test.go
@@ -18,10 +18,10 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchutil"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/opensearchapi/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchutil"
 )
 
 func TestReindexRethrottle(t *testing.T) {
diff --git a/opensearchapi/api_reindex_test.go b/opensearchapi/api_reindex_test.go
index 70d4033..8bf0ea5 100644
--- a/opensearchapi/api_reindex_test.go
+++ b/opensearchapi/api_reindex_test.go
@@ -18,10 +18,10 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchutil"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/opensearchapi/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchutil"
 )
 
 func TestReindex(t *testing.T) {
diff --git a/opensearchapi/api_render_search_template_test.go b/opensearchapi/api_render_search_template_test.go
index f35dd3a..0aca1aa 100644
--- a/opensearchapi/api_render_search_template_test.go
+++ b/opensearchapi/api_render_search_template_test.go
@@ -16,9 +16,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/opensearchapi/internal/test"
 )
 
 func TestRenderSearchTemplate(t *testing.T) {
diff --git a/opensearchapi/api_script_test.go b/opensearchapi/api_script_test.go
index d8dc621..317e3cb 100644
--- a/opensearchapi/api_script_test.go
+++ b/opensearchapi/api_script_test.go
@@ -15,9 +15,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/opensearchapi/internal/test"
 )
 
 func TestScriptClient(t *testing.T) {
diff --git a/opensearchapi/api_scroll_test.go b/opensearchapi/api_scroll_test.go
index 12aa23d..190be83 100644
--- a/opensearchapi/api_scroll_test.go
+++ b/opensearchapi/api_scroll_test.go
@@ -15,9 +15,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/opensearchapi/internal/test"
 )
 
 func TestScrollClient(t *testing.T) {
diff --git a/opensearchapi/api_search-template_test.go b/opensearchapi/api_search-template_test.go
index c56b12e..9032b89 100644
--- a/opensearchapi/api_search-template_test.go
+++ b/opensearchapi/api_search-template_test.go
@@ -16,9 +16,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/opensearchapi/internal/test"
 )
 
 func TestSearchTemplate(t *testing.T) {
diff --git a/opensearchapi/api_search_shards_test.go b/opensearchapi/api_search_shards_test.go
index eae7396..238c0e2 100644
--- a/opensearchapi/api_search_shards_test.go
+++ b/opensearchapi/api_search_shards_test.go
@@ -14,9 +14,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/opensearchapi/internal/test"
 )
 
 func TestSearchShards(t *testing.T) {
diff --git a/opensearchapi/api_search_test.go b/opensearchapi/api_search_test.go
index a00de3b..75c4dbe 100644
--- a/opensearchapi/api_search_test.go
+++ b/opensearchapi/api_search_test.go
@@ -16,9 +16,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/opensearchapi/internal/test"
 )
 
 func TestSearch(t *testing.T) {
diff --git a/opensearchapi/api_snapshot_test.go b/opensearchapi/api_snapshot_test.go
index c835b4e..d90aade 100644
--- a/opensearchapi/api_snapshot_test.go
+++ b/opensearchapi/api_snapshot_test.go
@@ -17,9 +17,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/opensearchapi/internal/test"
 )
 
 func TestSnapshotClient(t *testing.T) {
diff --git a/opensearchapi/api_tasks_test.go b/opensearchapi/api_tasks_test.go
index 7cea444..1725c6b 100644
--- a/opensearchapi/api_tasks_test.go
+++ b/opensearchapi/api_tasks_test.go
@@ -18,10 +18,10 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchutil"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/opensearchapi/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchutil"
 )
 
 func TestTasksClient(t *testing.T) {
diff --git a/opensearchapi/api_template_test.go b/opensearchapi/api_template_test.go
index 693e973..1dade78 100644
--- a/opensearchapi/api_template_test.go
+++ b/opensearchapi/api_template_test.go
@@ -15,9 +15,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/opensearchapi/internal/test"
 )
 
 func TestTemplateClient(t *testing.T) {
diff --git a/opensearchapi/api_termvectors_test.go b/opensearchapi/api_termvectors_test.go
index 0052faa..7a2e88d 100644
--- a/opensearchapi/api_termvectors_test.go
+++ b/opensearchapi/api_termvectors_test.go
@@ -16,9 +16,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/opensearchapi/internal/test"
 )
 
 func TestTermvectors(t *testing.T) {
diff --git a/opensearchapi/api_update_by_query_rethrottle_test.go b/opensearchapi/api_update_by_query_rethrottle_test.go
index 58ae60f..93a942d 100644
--- a/opensearchapi/api_update_by_query_rethrottle_test.go
+++ b/opensearchapi/api_update_by_query_rethrottle_test.go
@@ -17,10 +17,10 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchutil"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/opensearchapi/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchutil"
 )
 
 func TestUpdateByQueryRethrottle(t *testing.T) {
diff --git a/opensearchapi/api_update_by_query_test.go b/opensearchapi/api_update_by_query_test.go
index 3b6c081..3d4d1f8 100644
--- a/opensearchapi/api_update_by_query_test.go
+++ b/opensearchapi/api_update_by_query_test.go
@@ -16,9 +16,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/opensearchapi/internal/test"
 )
 
 func TestUpdateByQuery(t *testing.T) {
diff --git a/opensearchapi/api_update_test.go b/opensearchapi/api_update_test.go
index e2fb72e..e75ac3b 100644
--- a/opensearchapi/api_update_test.go
+++ b/opensearchapi/api_update_test.go
@@ -16,9 +16,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/opensearchapi/internal/test"
 )
 
 func TestUpdate(t *testing.T) {
diff --git a/opensearchapi/internal/test/helper.go b/opensearchapi/internal/test/helper.go
index 5ebe807..a671d16 100644
--- a/opensearchapi/internal/test/helper.go
+++ b/opensearchapi/internal/test/helper.go
@@ -15,8 +15,8 @@ import (
 
 	"github.com/stretchr/testify/assert"
 
-	"github.com/opensearch-project/opensearch-go/v3"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
+	"github.com/opensearch-project/opensearch-go/v4"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
 )
 
 // Response is a dummy interface to run tests with Inspect()
diff --git a/opensearchtransport/logger_benchmark_test.go b/opensearchtransport/logger_benchmark_test.go
index c45eff4..8ce9295 100644
--- a/opensearchtransport/logger_benchmark_test.go
+++ b/opensearchtransport/logger_benchmark_test.go
@@ -35,7 +35,7 @@ import (
 	"net/url"
 	"testing"
 
-	"github.com/opensearch-project/opensearch-go/v3/opensearchtransport"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchtransport"
 )
 
 func BenchmarkTransportLogger(b *testing.B) {
diff --git a/opensearchtransport/opensearchtransport_benchmark_test.go b/opensearchtransport/opensearchtransport_benchmark_test.go
index 988d3ec..47af222 100644
--- a/opensearchtransport/opensearchtransport_benchmark_test.go
+++ b/opensearchtransport/opensearchtransport_benchmark_test.go
@@ -36,7 +36,7 @@ import (
 	"strings"
 	"testing"
 
-	"github.com/opensearch-project/opensearch-go/v3/opensearchtransport"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchtransport"
 )
 
 type FakeTransport struct {
diff --git a/opensearchtransport/opensearchtransport_integration_multinode_test.go b/opensearchtransport/opensearchtransport_integration_multinode_test.go
index 36c6c38..b2e629a 100644
--- a/opensearchtransport/opensearchtransport_integration_multinode_test.go
+++ b/opensearchtransport/opensearchtransport_integration_multinode_test.go
@@ -35,7 +35,7 @@ import (
 	"net/url"
 	"testing"
 
-	"github.com/opensearch-project/opensearch-go/v3/opensearchtransport"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchtransport"
 )
 
 var (
diff --git a/opensearchtransport/opensearchtransport_integration_test.go b/opensearchtransport/opensearchtransport_integration_test.go
index 9e878b1..edacac7 100644
--- a/opensearchtransport/opensearchtransport_integration_test.go
+++ b/opensearchtransport/opensearchtransport_integration_test.go
@@ -38,9 +38,9 @@ import (
 	"strings"
 	"testing"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchtransport"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchutil"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchtransport"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchutil"
 )
 
 var (
diff --git a/opensearchutil/bulk_indexer_benchmark_test.go b/opensearchutil/bulk_indexer_benchmark_test.go
index a83a0eb..f50990c 100644
--- a/opensearchutil/bulk_indexer_benchmark_test.go
+++ b/opensearchutil/bulk_indexer_benchmark_test.go
@@ -37,9 +37,9 @@ import (
 	"strings"
 	"testing"
 
-	"github.com/opensearch-project/opensearch-go/v3"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchutil"
+	"github.com/opensearch-project/opensearch-go/v4"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchutil"
 )
 
 var mockResponseBody = `{
diff --git a/opensearchutil/bulk_indexer_example_test.go b/opensearchutil/bulk_indexer_example_test.go
index a4a47dc..d5f483e 100644
--- a/opensearchutil/bulk_indexer_example_test.go
+++ b/opensearchutil/bulk_indexer_example_test.go
@@ -35,9 +35,9 @@ import (
 	"strings"
 	"time"
 
-	"github.com/opensearch-project/opensearch-go/v3"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchutil"
+	"github.com/opensearch-project/opensearch-go/v4"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchutil"
 )
 
 func ExampleNewBulkIndexer() {
diff --git a/opensearchutil/bulk_indexer_integration_test.go b/opensearchutil/bulk_indexer_integration_test.go
index ef74f1b..664b0dd 100644
--- a/opensearchutil/bulk_indexer_integration_test.go
+++ b/opensearchutil/bulk_indexer_integration_test.go
@@ -37,11 +37,11 @@ import (
 	"testing"
 	"time"
 
-	"github.com/opensearch-project/opensearch-go/v3"
-	osapitest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchtransport"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchutil"
+	"github.com/opensearch-project/opensearch-go/v4"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchtransport"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchutil"
 )
 
 func TestBulkIndexerIntegration(t *testing.T) {
diff --git a/opensearchutil/bulk_indexer_internal_test.go b/opensearchutil/bulk_indexer_internal_test.go
index 1bd1846..ed8827f 100644
--- a/opensearchutil/bulk_indexer_internal_test.go
+++ b/opensearchutil/bulk_indexer_internal_test.go
@@ -44,9 +44,9 @@ import (
 	"testing"
 	"time"
 
-	"github.com/opensearch-project/opensearch-go/v3"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchtransport"
+	"github.com/opensearch-project/opensearch-go/v4"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchtransport"
 )
 
 var infoBody = `{
diff --git a/opensearchutil/json_reader_benchmark_test.go b/opensearchutil/json_reader_benchmark_test.go
index 3cf1c3c..3bdff50 100644
--- a/opensearchutil/json_reader_benchmark_test.go
+++ b/opensearchutil/json_reader_benchmark_test.go
@@ -36,7 +36,7 @@ import (
 	"strings"
 	"testing"
 
-	"github.com/opensearch-project/opensearch-go/v3/opensearchutil"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchutil"
 )
 
 var _ = fmt.Print
diff --git a/opensearchutil/json_reader_integration_test.go b/opensearchutil/json_reader_integration_test.go
index c7bcd8d..59ba4e9 100644
--- a/opensearchutil/json_reader_integration_test.go
+++ b/opensearchutil/json_reader_integration_test.go
@@ -36,9 +36,9 @@ import (
 
 	"golang.org/x/exp/slices"
 
-	osapitest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchutil"
+	osapitest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchutil"
 )
 
 func TestJSONReaderIntegration(t *testing.T) {
diff --git a/plugins/ism/api_policies_test.go b/plugins/ism/api_policies_test.go
index 2fd030a..a315f77 100644
--- a/plugins/ism/api_policies_test.go
+++ b/plugins/ism/api_policies_test.go
@@ -14,10 +14,10 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	"github.com/opensearch-project/opensearch-go/v3"
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/plugins/ism"
-	osismtest "github.com/opensearch-project/opensearch-go/v3/plugins/ism/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/plugins/ism"
+	osismtest "github.com/opensearch-project/opensearch-go/v4/plugins/ism/internal/test"
 )
 
 func TestPoliciesClient(t *testing.T) {
diff --git a/plugins/ism/api_test.go b/plugins/ism/api_test.go
index 77c5cb9..a766e6f 100644
--- a/plugins/ism/api_test.go
+++ b/plugins/ism/api_test.go
@@ -15,10 +15,10 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/opensearchapi"
-	"github.com/opensearch-project/opensearch-go/v3/plugins/ism"
-	osismtest "github.com/opensearch-project/opensearch-go/v3/plugins/ism/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/opensearchapi"
+	"github.com/opensearch-project/opensearch-go/v4/plugins/ism"
+	osismtest "github.com/opensearch-project/opensearch-go/v4/plugins/ism/internal/test"
 )
 
 func TestClient(t *testing.T) {
diff --git a/plugins/ism/internal/test/helper.go b/plugins/ism/internal/test/helper.go
index 909d408..da860c7 100644
--- a/plugins/ism/internal/test/helper.go
+++ b/plugins/ism/internal/test/helper.go
@@ -16,9 +16,9 @@ import (
 
 	"github.com/stretchr/testify/assert"
 
-	"github.com/opensearch-project/opensearch-go/v3"
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/plugins/ism"
+	"github.com/opensearch-project/opensearch-go/v4"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/plugins/ism"
 )
 
 // Response is a dummy interface to run tests with Inspect()
diff --git a/plugins/security/api_account_test.go b/plugins/security/api_account_test.go
index f4607e9..27225a9 100644
--- a/plugins/security/api_account_test.go
+++ b/plugins/security/api_account_test.go
@@ -14,9 +14,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/plugins/security"
-	ossectest "github.com/opensearch-project/opensearch-go/v3/plugins/security/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/plugins/security"
+	ossectest "github.com/opensearch-project/opensearch-go/v4/plugins/security/internal/test"
 )
 
 func TestAccountClient(t *testing.T) {
diff --git a/plugins/security/api_actiongroups_test.go b/plugins/security/api_actiongroups_test.go
index 5aee243..0a62ccf 100644
--- a/plugins/security/api_actiongroups_test.go
+++ b/plugins/security/api_actiongroups_test.go
@@ -14,10 +14,10 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	"github.com/opensearch-project/opensearch-go/v3"
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/plugins/security"
-	ossectest "github.com/opensearch-project/opensearch-go/v3/plugins/security/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/plugins/security"
+	ossectest "github.com/opensearch-project/opensearch-go/v4/plugins/security/internal/test"
 )
 
 func TestActiongroupsClient(t *testing.T) {
diff --git a/plugins/security/api_audit_test.go b/plugins/security/api_audit_test.go
index 1dcbbfc..e2bc4b1 100644
--- a/plugins/security/api_audit_test.go
+++ b/plugins/security/api_audit_test.go
@@ -14,9 +14,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/plugins/security"
-	ossectest "github.com/opensearch-project/opensearch-go/v3/plugins/security/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/plugins/security"
+	ossectest "github.com/opensearch-project/opensearch-go/v4/plugins/security/internal/test"
 )
 
 func TestAuditClient(t *testing.T) {
diff --git a/plugins/security/api_flushcache_test.go b/plugins/security/api_flushcache_test.go
index 7fcd47a..33751e3 100644
--- a/plugins/security/api_flushcache_test.go
+++ b/plugins/security/api_flushcache_test.go
@@ -14,8 +14,8 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	ossectest "github.com/opensearch-project/opensearch-go/v3/plugins/security/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	ossectest "github.com/opensearch-project/opensearch-go/v4/plugins/security/internal/test"
 )
 
 func TestFlushCache(t *testing.T) {
diff --git a/plugins/security/api_health_test.go b/plugins/security/api_health_test.go
index 859edea..df8c0a3 100644
--- a/plugins/security/api_health_test.go
+++ b/plugins/security/api_health_test.go
@@ -14,8 +14,8 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	ossectest "github.com/opensearch-project/opensearch-go/v3/plugins/security/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	ossectest "github.com/opensearch-project/opensearch-go/v4/plugins/security/internal/test"
 )
 
 func TestHealthClient(t *testing.T) {
diff --git a/plugins/security/api_internalusers_test.go b/plugins/security/api_internalusers_test.go
index 40af5a5..8470720 100644
--- a/plugins/security/api_internalusers_test.go
+++ b/plugins/security/api_internalusers_test.go
@@ -14,9 +14,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/plugins/security"
-	ossectest "github.com/opensearch-project/opensearch-go/v3/plugins/security/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/plugins/security"
+	ossectest "github.com/opensearch-project/opensearch-go/v4/plugins/security/internal/test"
 )
 
 func TestInternalUsersClient(t *testing.T) {
diff --git a/plugins/security/api_nodesdn_test.go b/plugins/security/api_nodesdn_test.go
index e289f42..5df3b46 100644
--- a/plugins/security/api_nodesdn_test.go
+++ b/plugins/security/api_nodesdn_test.go
@@ -16,9 +16,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/plugins/security"
-	ossectest "github.com/opensearch-project/opensearch-go/v3/plugins/security/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/plugins/security"
+	ossectest "github.com/opensearch-project/opensearch-go/v4/plugins/security/internal/test"
 )
 
 func TestNodesDNClient(t *testing.T) {
diff --git a/plugins/security/api_roles_test.go b/plugins/security/api_roles_test.go
index 46d1fd6..7cb5e24 100644
--- a/plugins/security/api_roles_test.go
+++ b/plugins/security/api_roles_test.go
@@ -15,9 +15,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/plugins/security"
-	ossectest "github.com/opensearch-project/opensearch-go/v3/plugins/security/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/plugins/security"
+	ossectest "github.com/opensearch-project/opensearch-go/v4/plugins/security/internal/test"
 )
 
 func TestRolesClient(t *testing.T) {
diff --git a/plugins/security/api_rolesmapping_test.go b/plugins/security/api_rolesmapping_test.go
index ebd3787..11da847 100644
--- a/plugins/security/api_rolesmapping_test.go
+++ b/plugins/security/api_rolesmapping_test.go
@@ -15,9 +15,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/plugins/security"
-	ossectest "github.com/opensearch-project/opensearch-go/v3/plugins/security/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/plugins/security"
+	ossectest "github.com/opensearch-project/opensearch-go/v4/plugins/security/internal/test"
 )
 
 func TestRolesMappingClient(t *testing.T) {
diff --git a/plugins/security/api_securityconfig_test.go b/plugins/security/api_securityconfig_test.go
index 1f971af..426f1a9 100644
--- a/plugins/security/api_securityconfig_test.go
+++ b/plugins/security/api_securityconfig_test.go
@@ -16,9 +16,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/plugins/security"
-	ossectest "github.com/opensearch-project/opensearch-go/v3/plugins/security/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/plugins/security"
+	ossectest "github.com/opensearch-project/opensearch-go/v4/plugins/security/internal/test"
 )
 
 func TestSecurityConfigClient(t *testing.T) {
diff --git a/plugins/security/api_ssl_test.go b/plugins/security/api_ssl_test.go
index d424d74..ea89ea2 100644
--- a/plugins/security/api_ssl_test.go
+++ b/plugins/security/api_ssl_test.go
@@ -17,9 +17,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/plugins/security"
-	ossectest "github.com/opensearch-project/opensearch-go/v3/plugins/security/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/plugins/security"
+	ossectest "github.com/opensearch-project/opensearch-go/v4/plugins/security/internal/test"
 )
 
 func TestSSLClient(t *testing.T) {
diff --git a/plugins/security/api_tenants_test.go b/plugins/security/api_tenants_test.go
index a045f17..aa9ef47 100644
--- a/plugins/security/api_tenants_test.go
+++ b/plugins/security/api_tenants_test.go
@@ -15,9 +15,9 @@ import (
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/plugins/security"
-	ossectest "github.com/opensearch-project/opensearch-go/v3/plugins/security/internal/test"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/plugins/security"
+	ossectest "github.com/opensearch-project/opensearch-go/v4/plugins/security/internal/test"
 )
 
 func TestTenantsClient(t *testing.T) {
diff --git a/plugins/security/internal/test/helper.go b/plugins/security/internal/test/helper.go
index 7442a0b..50295b8 100644
--- a/plugins/security/internal/test/helper.go
+++ b/plugins/security/internal/test/helper.go
@@ -17,9 +17,9 @@ import (
 
 	"github.com/stretchr/testify/assert"
 
-	"github.com/opensearch-project/opensearch-go/v3"
-	ostest "github.com/opensearch-project/opensearch-go/v3/internal/test"
-	"github.com/opensearch-project/opensearch-go/v3/plugins/security"
+	"github.com/opensearch-project/opensearch-go/v4"
+	ostest "github.com/opensearch-project/opensearch-go/v4/internal/test"
+	"github.com/opensearch-project/opensearch-go/v4/plugins/security"
 )
 
 // Response is a dummy interface to run tests with Inspect()
diff --git a/response_test.go b/response_test.go
index 9fdfc6e..639508d 100644
--- a/response_test.go
+++ b/response_test.go
@@ -31,7 +31,7 @@ import (
 
 	"github.com/stretchr/testify/assert"
 
-	"github.com/opensearch-project/opensearch-go/v3"
+	"github.com/opensearch-project/opensearch-go/v4"
 )
 
 func TestResponse(t *testing.T) {
diff --git a/signer/aws/aws_test.go b/signer/aws/aws_test.go
index 311b388..6ba88f1 100644
--- a/signer/aws/aws_test.go
+++ b/signer/aws/aws_test.go
@@ -23,7 +23,7 @@ import (
 	"github.com/aws/aws-sdk-go/aws/session"
 	"github.com/stretchr/testify/assert"
 
-	osaws "github.com/opensearch-project/opensearch-go/v3/signer/aws"
+	osaws "github.com/opensearch-project/opensearch-go/v4/signer/aws"
 )
 
 func TestConstants(t *testing.T) {
diff --git a/signer/awsv2/sdkv2signer_test.go b/signer/awsv2/sdkv2signer_test.go
index 1b65f04..015d6b9 100644
--- a/signer/awsv2/sdkv2signer_test.go
+++ b/signer/awsv2/sdkv2signer_test.go
@@ -22,7 +22,7 @@ import (
 	"github.com/aws/aws-sdk-go-v2/config"
 	"github.com/stretchr/testify/assert"
 
-	"github.com/opensearch-project/opensearch-go/v3/signer/awsv2"
+	"github.com/opensearch-project/opensearch-go/v4/signer/awsv2"
 )
 
 func getCredentialProvider() aws.CredentialsProviderFunc {