diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b0d6fdaf..4d0fdb5c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,6 +34,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - guids: updated to work for the new opensearchapi ([#421](https://github.com/opensearch-project/opensearch-go/pull/421)) - Test adjusted to new opensearchapi functions and structs ([#421](https://github.com/opensearch-project/opensearch-go/pull/421)) - Change codecov to comment code coverage to each PR ([#410](https://github.com/opensearch-project/opensearch-go/pull/410)) +- Change module version from v2 to v3 ([#444](https://github.com/opensearch-project/opensearch-go/pull/444)) ### Deprecated diff --git a/README.md b/README.md index bd0260fc6..a8fdc8124 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/v2) [![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/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) ![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/v2) +- [API Documentation](https://pkg.go.dev/github.com/opensearch-project/opensearch-go/v3) - 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 f09c766c3..27ce93d4f 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -37,5 +37,5 @@ The release process is standard across repositories in this org and is run by a 2. Add a comparison link to the new version at the bottom of the [CHANGELOG](CHANGELOG.md). 3. Adjust the internal client version in the [internal/version/version.go](internal/version/version.go) file. 4. Create a PR with the changes and merge it into main. -5. Create a tag, e.g. `v2.1.0`, and push it to the GitHub repo. This makes the new version available on https://pkg.go.dev/github.com/opensearch-project/opensearch-go/v2. +5. Create a tag, e.g. `v3.0.1`, and push it to the GitHub repo. This makes the new version available on https://pkg.go.dev/github.com/opensearch-project/opensearch-go/v3. 6. Create a new `Unreleased` section in the [CHANGELOG](CHANGELOG.md) and merge it into main. diff --git a/USER_GUIDE.md b/USER_GUIDE.md index fb2636814..59d033de1 100644 --- a/USER_GUIDE.md +++ b/USER_GUIDE.md @@ -23,9 +23,9 @@ import ( "os" "strings" - "github.com/opensearch-project/opensearch-go/v2" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - "github.com/opensearch-project/opensearch-go/v2/opensearchutil" + "github.com/opensearch-project/opensearch-go/v3" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + "github.com/opensearch-project/opensearch-go/v3/opensearchutil" ) const IndexName = "go-test-index1" @@ -219,10 +219,10 @@ import ( "os" "github.com/aws/aws-sdk-go/aws/session" - requestsigner "github.com/opensearch-project/opensearch-go/v2/signer/aws" + requestsigner "github.com/opensearch-project/opensearch-go/v3/signer/aws" - "github.com/opensearch-project/opensearch-go/v2" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" + "github.com/opensearch-project/opensearch-go/v3" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" ) const IndexName = "go-test-index1" @@ -288,9 +288,9 @@ import ( "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/config" - "github.com/opensearch-project/opensearch-go/v2" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - requestsigner "github.com/opensearch-project/opensearch-go/v2/signer/awsv2" + "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" ) 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 4bed616e6..04fda678d 100644 --- a/_samples/advanced_index_actions.go +++ b/_samples/advanced_index_actions.go @@ -11,7 +11,7 @@ import ( "os" "strings" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" ) func main() { diff --git a/_samples/bulk.go b/_samples/bulk.go index 251508ad1..95d5ef278 100644 --- a/_samples/bulk.go +++ b/_samples/bulk.go @@ -12,7 +12,7 @@ import ( "os" "strings" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" ) func main() { diff --git a/_samples/data_stream.go b/_samples/data_stream.go index ad1b96ad1..6ede51f3f 100644 --- a/_samples/data_stream.go +++ b/_samples/data_stream.go @@ -12,7 +12,7 @@ import ( "os" "strings" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" ) func main() { diff --git a/_samples/document_lifecycle.go b/_samples/document_lifecycle.go index 374d7cb3a..233e2138e 100644 --- a/_samples/document_lifecycle.go +++ b/_samples/document_lifecycle.go @@ -12,7 +12,7 @@ import ( "os" "strings" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" ) func main() { diff --git a/_samples/index_lifecycle.go b/_samples/index_lifecycle.go index d49617804..a2c532943 100644 --- a/_samples/index_lifecycle.go +++ b/_samples/index_lifecycle.go @@ -12,7 +12,7 @@ import ( "os" "strings" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" ) func main() { diff --git a/_samples/json.go b/_samples/json.go index 79625ba7e..9a7c40f8f 100644 --- a/_samples/json.go +++ b/_samples/json.go @@ -12,7 +12,7 @@ import ( "os" "strings" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" ) const IndexName = "go-test-index1" diff --git a/_samples/search.go b/_samples/search.go index 7235dc2ad..beef62839 100644 --- a/_samples/search.go +++ b/_samples/search.go @@ -14,7 +14,7 @@ import ( "strings" "time" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" ) func main() { diff --git a/go.mod b/go.mod index d13032f31..39d36f38b 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/opensearch-project/opensearch-go/v2 +module github.com/opensearch-project/opensearch-go/v3 go 1.20 diff --git a/guides/advanced_index_actions.md b/guides/advanced_index_actions.md index 45a12c6ad..e4df492b1 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/v2/opensearchapi" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" ) func main() { diff --git a/guides/bulk.md b/guides/bulk.md index 8c3a9d16b..4668df79a 100644 --- a/guides/bulk.md +++ b/guides/bulk.md @@ -16,7 +16,7 @@ import ( "os" "strings" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" ) func main() { diff --git a/guides/data_streams.md b/guides/data_streams.md index a1732c3c3..1604e1745 100644 --- a/guides/data_streams.md +++ b/guides/data_streams.md @@ -13,7 +13,7 @@ import ( "os" "strings" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" ) func main() { diff --git a/guides/document_lifecycle.md b/guides/document_lifecycle.md index 682279957..40a965448 100644 --- a/guides/document_lifecycle.md +++ b/guides/document_lifecycle.md @@ -15,7 +15,7 @@ import ( "os" "strings" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" ) func main() { diff --git a/guides/index_lifecycle.md b/guides/index_lifecycle.md index b07587d3d..96f79bfe1 100644 --- a/guides/index_lifecycle.md +++ b/guides/index_lifecycle.md @@ -26,7 +26,7 @@ import ( "os" "strings" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" ) func main() { diff --git a/guides/index_template.md b/guides/index_template.md index 6f63af4f2..2d6a9902b 100644 --- a/guides/index_template.md +++ b/guides/index_template.md @@ -17,8 +17,8 @@ import ( "os" "strings" - "github.com/opensearch-project/opensearch-go/v2" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" + "github.com/opensearch-project/opensearch-go/v3" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" ) func main() { diff --git a/guides/json.md b/guides/json.md index 7fb5806eb..fa6b20213 100644 --- a/guides/json.md +++ b/guides/json.md @@ -23,7 +23,7 @@ import ( "os" "strings" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" ) func main() { diff --git a/guides/search.md b/guides/search.md index 9cb509f50..2f681495c 100644 --- a/guides/search.md +++ b/guides/search.md @@ -16,7 +16,7 @@ import ( "strconv" "strings" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" ) func main() { diff --git a/opensearch.go b/opensearch.go index b67beb381..c99052530 100644 --- a/opensearch.go +++ b/opensearch.go @@ -41,9 +41,9 @@ import ( "strings" "time" - "github.com/opensearch-project/opensearch-go/v2/internal/version" - "github.com/opensearch-project/opensearch-go/v2/opensearchtransport" - "github.com/opensearch-project/opensearch-go/v2/signer" + "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" ) const ( diff --git a/opensearch_benchmark_test.go b/opensearch_benchmark_test.go index e0068e89c..a4234e5dd 100644 --- a/opensearch_benchmark_test.go +++ b/opensearch_benchmark_test.go @@ -37,8 +37,8 @@ import ( "strings" "testing" - "github.com/opensearch-project/opensearch-go/v2" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" + "github.com/opensearch-project/opensearch-go/v3" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" ) type FakeTransport struct { diff --git a/opensearch_example_test.go b/opensearch_example_test.go index fbaab125e..fbe42d810 100644 --- a/opensearch_example_test.go +++ b/opensearch_example_test.go @@ -37,9 +37,9 @@ import ( "os" "time" - "github.com/opensearch-project/opensearch-go/v2" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - "github.com/opensearch-project/opensearch-go/v2/opensearchtransport" + "github.com/opensearch-project/opensearch-go/v3" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + "github.com/opensearch-project/opensearch-go/v3/opensearchtransport" ) func init() { diff --git a/opensearch_integration_test.go b/opensearch_integration_test.go index a2a479bcb..74eb2b0b1 100644 --- a/opensearch_integration_test.go +++ b/opensearch_integration_test.go @@ -40,9 +40,9 @@ import ( "testing" "time" - "github.com/opensearch-project/opensearch-go/v2" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - "github.com/opensearch-project/opensearch-go/v2/opensearchtransport" + "github.com/opensearch-project/opensearch-go/v3" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + "github.com/opensearch-project/opensearch-go/v3/opensearchtransport" ) func TestClientTransport(t *testing.T) { diff --git a/opensearch_internal_test.go b/opensearch_internal_test.go index a8440fcd7..637dfa8d4 100644 --- a/opensearch_internal_test.go +++ b/opensearch_internal_test.go @@ -38,7 +38,7 @@ import ( "strings" "testing" - "github.com/opensearch-project/opensearch-go/v2/opensearchtransport" + "github.com/opensearch-project/opensearch-go/v3/opensearchtransport" ) var called bool diff --git a/opensearch_secure_integration_test.go b/opensearch_secure_integration_test.go index 1ee91da44..753b41fe5 100644 --- a/opensearch_secure_integration_test.go +++ b/opensearch_secure_integration_test.go @@ -32,8 +32,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/opensearch-project/opensearch-go/v2" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" + "github.com/opensearch-project/opensearch-go/v3" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" ) func getSecuredClient() (*opensearchapi.Client, error) { diff --git a/opensearchapi/api_aliases.go b/opensearchapi/api_aliases.go index 747b60b11..8633dcd9d 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // Aliases executes an /_aliases request with the required AliasesReq diff --git a/opensearchapi/api_aliases_test.go b/opensearchapi/api_aliases_test.go index c78d9efb8..391f6229f 100644 --- a/opensearchapi/api_aliases_test.go +++ b/opensearchapi/api_aliases_test.go @@ -14,8 +14,8 @@ import ( "github.com/stretchr/testify/require" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - osapitest "github.com/opensearch-project/opensearch-go/v2/opensearchapi/internal/test" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test" ) func TestAliases(t *testing.T) { diff --git a/opensearchapi/api_bulk.go b/opensearchapi/api_bulk.go index 717dff45d..d1683a57a 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // Bulk executes a /_bulk request with the needed BulkReq diff --git a/opensearchapi/api_bulk_test.go b/opensearchapi/api_bulk_test.go index a1d6ddb03..403f44c88 100644 --- a/opensearchapi/api_bulk_test.go +++ b/opensearchapi/api_bulk_test.go @@ -16,8 +16,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - osapitest "github.com/opensearch-project/opensearch-go/v2/opensearchapi/internal/test" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test" ) func TestBulkClient(t *testing.T) { diff --git a/opensearchapi/api_cat-aliases.go b/opensearchapi/api_cat-aliases.go index 004f2c05b..a3ec4ac66 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // CatAliasesReq represent possible options for the /_cat/aliases request diff --git a/opensearchapi/api_cat-allocation.go b/opensearchapi/api_cat-allocation.go index c01e76470..d125635ce 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // 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 2a5dd38d4..6897aa1d1 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // 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 699e01b4b..d4250301c 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // CatCountReq represent possible options for the /_cat/count request diff --git a/opensearchapi/api_cat-fielddata.go b/opensearchapi/api_cat-fielddata.go index 4b9f3edb5..aa70dae57 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // CatFieldDataReq represent possible options for the /_cat/fielddata request diff --git a/opensearchapi/api_cat-health.go b/opensearchapi/api_cat-health.go index 3c73d82f4..4c7df9a32 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // CatHealthReq represent possible options for the /_cat/health request diff --git a/opensearchapi/api_cat-indices.go b/opensearchapi/api_cat-indices.go index e4a42c8b4..b731395c9 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // CatIndicesReq represent possible options for the /_cat/indices request diff --git a/opensearchapi/api_cat-master.go b/opensearchapi/api_cat-master.go index 7c4fc0094..bb1626203 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // CatMasterReq represent possible options for the /_cat/master request diff --git a/opensearchapi/api_cat-nodeattrs.go b/opensearchapi/api_cat-nodeattrs.go index 5c4653265..8f5cb6ce9 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // CatNodeAttrsReq represent possible options for the /_cat/nodeattrs request diff --git a/opensearchapi/api_cat-nodes.go b/opensearchapi/api_cat-nodes.go index 5fd40b792..352af4936 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // 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 98e278353..c830d3635 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // 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 65480a92f..451d23432 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // CatPluginsReq represent possible options for the /_cat/plugins request diff --git a/opensearchapi/api_cat-recovery.go b/opensearchapi/api_cat-recovery.go index 2d270f6bb..2dc29c3ed 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // CatRecoveryReq represent possible options for the /_cat/recovery request diff --git a/opensearchapi/api_cat-repositories.go b/opensearchapi/api_cat-repositories.go index 7f6b20a72..760b458ff 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // CatRepositoriesReq represent possible options for the /_cat/repositories request diff --git a/opensearchapi/api_cat-segments.go b/opensearchapi/api_cat-segments.go index c51e81a2d..0dec8d2b0 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // CatSegmentsReq represent possible options for the /_cat/segments request diff --git a/opensearchapi/api_cat-shards.go b/opensearchapi/api_cat-shards.go index b9a91d843..10f674826 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // CatShardsReq represent possible options for the /_cat/shards request diff --git a/opensearchapi/api_cat-snapshots.go b/opensearchapi/api_cat-snapshots.go index 166365817..0e150b0a5 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // CatSnapshotsReq represent possible options for the /_cat/snapshots request diff --git a/opensearchapi/api_cat-tasks.go b/opensearchapi/api_cat-tasks.go index af67668ba..5a92399c1 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // CatTasksReq represent possible options for the /_cat/tasks request diff --git a/opensearchapi/api_cat-templates.go b/opensearchapi/api_cat-templates.go index 60fcf2844..a92eb8b88 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // 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 48a1ede55..71193804c 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // CatThreadPoolReq represent possible options for the /_cat/thread_pool request diff --git a/opensearchapi/api_cat_test.go b/opensearchapi/api_cat_test.go index bb8d90bb5..6f1a2b4c7 100644 --- a/opensearchapi/api_cat_test.go +++ b/opensearchapi/api_cat_test.go @@ -15,8 +15,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - osapitest "github.com/opensearch-project/opensearch-go/v2/opensearchapi/internal/test" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test" ) func TestCatClient(t *testing.T) { diff --git a/opensearchapi/api_cluster-allocation_explain.go b/opensearchapi/api_cluster-allocation_explain.go index e03f5a128..2e9622a3e 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // ClusterAllocationExplainReq represents possible options for the /_nodes request diff --git a/opensearchapi/api_cluster-decommission.go b/opensearchapi/api_cluster-decommission.go index c8ca7d892..d88d05810 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // 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 e5e929f64..a92873757 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // 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 a030239f7..56bfb7532 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // 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 99643d4fb..b4b265f6c 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // ClusterRemoteInfoReq represents possible options for the /_remote/info request diff --git a/opensearchapi/api_cluster-reroute.go b/opensearchapi/api_cluster-reroute.go index 40ba58e6f..2178ca6db 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // ClusterRerouteReq represents possible options for the /_cluster/reroute request diff --git a/opensearchapi/api_cluster-settings.go b/opensearchapi/api_cluster-settings.go index bb5d054a9..22c11b4ac 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // ClusterGetSettingsReq represents possible options for the /_cluster/settings request diff --git a/opensearchapi/api_cluster-state.go b/opensearchapi/api_cluster-state.go index 34b37426e..c0c3e01e0 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // ClusterStateReq represents possible options for the /_cluster/state request diff --git a/opensearchapi/api_cluster-stats.go b/opensearchapi/api_cluster-stats.go index 6500b786c..714954bcb 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // 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 46736459c..c5c7b17ed 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // ClusterPostVotingConfigExclusionsReq represents possible options for the /_cluster/voting_config_exclusions request diff --git a/opensearchapi/api_cluster.go b/opensearchapi/api_cluster.go index 40ad57a5f..d66a450af 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) type clusterClient struct { diff --git a/opensearchapi/api_cluster_test.go b/opensearchapi/api_cluster_test.go index 88ba0f6e9..29e834b03 100644 --- a/opensearchapi/api_cluster_test.go +++ b/opensearchapi/api_cluster_test.go @@ -15,8 +15,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - osapitest "github.com/opensearch-project/opensearch-go/v2/opensearchapi/internal/test" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test" ) func TestClusterClient(t *testing.T) { diff --git a/opensearchapi/api_component_template-create.go b/opensearchapi/api_component_template-create.go index 9a9c56762..608437ca8 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // 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 750139009..799bdaa79 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // 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 a13abc380..3f13e8cab 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // 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 6587a048a..637b796a8 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // 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 a0a6810b3..008efbcec 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) type componentTemplateClient struct { diff --git a/opensearchapi/api_component_template_test.go b/opensearchapi/api_component_template_test.go index 1bed017c1..6a22dc41c 100644 --- a/opensearchapi/api_component_template_test.go +++ b/opensearchapi/api_component_template_test.go @@ -15,8 +15,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - osapitest "github.com/opensearch-project/opensearch-go/v2/opensearchapi/internal/test" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test" ) func TestComponentTemplateClient(t *testing.T) { diff --git a/opensearchapi/api_dangling-delete.go b/opensearchapi/api_dangling-delete.go index d92eef5bb..5705614aa 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // DanglingDeleteReq represents possible options for the delete dangling request diff --git a/opensearchapi/api_dangling-get.go b/opensearchapi/api_dangling-get.go index cc307b75f..5b20c88d1 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // DanglingGetReq represents possible options for the dangling get request diff --git a/opensearchapi/api_dangling-import.go b/opensearchapi/api_dangling-import.go index e0f915340..27d2fc592 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // DanglingImportReq represents possible options for the dangling import request diff --git a/opensearchapi/api_dangling_test.go b/opensearchapi/api_dangling_test.go index c0b284cee..e9098b0f7 100644 --- a/opensearchapi/api_dangling_test.go +++ b/opensearchapi/api_dangling_test.go @@ -20,9 +20,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/opensearch-project/opensearch-go/v2" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - osapitest "github.com/opensearch-project/opensearch-go/v2/opensearchapi/internal/test" + "github.com/opensearch-project/opensearch-go/v3" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test" ) func TestDanglingClient(t *testing.T) { diff --git a/opensearchapi/api_datastream-create.go b/opensearchapi/api_datastream-create.go index debfddfc9..9ba4cee57 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // 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 10d3f8874..0bdb44810 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // 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 ec880c4f7..595c28a00 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // 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 b3f9281ef..2596d70fb 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // DataStreamStatsReq represents possible options for the _data_stream stats request diff --git a/opensearchapi/api_datastream_test.go b/opensearchapi/api_datastream_test.go index 77a4526f6..5c6ecd6fb 100644 --- a/opensearchapi/api_datastream_test.go +++ b/opensearchapi/api_datastream_test.go @@ -15,8 +15,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - osapitest "github.com/opensearch-project/opensearch-go/v2/opensearchapi/internal/test" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test" ) func TestDataStreamClient(t *testing.T) { diff --git a/opensearchapi/api_document-create.go b/opensearchapi/api_document-create.go index a84ff29d5..8af66b308 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // DocumentCreateReq represents possible options for the //_create request diff --git a/opensearchapi/api_document-delete.go b/opensearchapi/api_document-delete.go index eb693f0b3..b840ff629 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // DocumentDeleteReq represents possible options for the //_doc/ delete request diff --git a/opensearchapi/api_document-delete_by_query.go b/opensearchapi/api_document-delete_by_query.go index 1da1ba613..909ec85e8 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // DocumentDeleteByQueryReq represents possible options for the //_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 88af1153f..15efe22f4 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // DocumentDeleteByQueryRethrottleReq represents possible options for the /_delete_by_query//_rethrottle request diff --git a/opensearchapi/api_document-exists.go b/opensearchapi/api_document-exists.go index 9490ba3ff..23b9f58ef 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // 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 7accfe413..cb02f6745 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // DocumentExistsSourceReq represents possible options for the _source exists request diff --git a/opensearchapi/api_document-explain.go b/opensearchapi/api_document-explain.go index 0ef4c15a5..619b3fcdc 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // DocumentExplainReq represents possible options for the //_explain/ request diff --git a/opensearchapi/api_document-get.go b/opensearchapi/api_document-get.go index 12f86c8a3..697c5ae97 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // DocumentGetReq represents possible options for the //_doc/ get request diff --git a/opensearchapi/api_document-source.go b/opensearchapi/api_document-source.go index 52aed15fb..101055c92 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // DocumentSourceReq represents possible options for the //_source/ get request diff --git a/opensearchapi/api_document.go b/opensearchapi/api_document.go index 56f4067da..d6c88592a 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) type documentClient struct { diff --git a/opensearchapi/api_document_test.go b/opensearchapi/api_document_test.go index e5d2b9032..95e4d34cf 100644 --- a/opensearchapi/api_document_test.go +++ b/opensearchapi/api_document_test.go @@ -17,9 +17,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - osapitest "github.com/opensearch-project/opensearch-go/v2/opensearchapi/internal/test" - "github.com/opensearch-project/opensearch-go/v2/opensearchutil" + "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" ) func TestDocumentClient(t *testing.T) { diff --git a/opensearchapi/api_index.go b/opensearchapi/api_index.go index 355cacdcb..c1a2439db 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // 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 dc17baffc..6cb07e609 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // 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 fb3336396..10aa26c99 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // 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 5a290200e..90e9e96fc 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // 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 a0ce8c312..50c7dd3c1 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // 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 1aae13c63..207f493e1 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // 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 3c1dee501..a7624fb1e 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // IndexTemplateSimulateIndexReq represents possible options for the index create request diff --git a/opensearchapi/api_index_template.go b/opensearchapi/api_index_template.go index 25f0a9fd2..67c603f0e 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) type indexTemplateClient struct { diff --git a/opensearchapi/api_index_template_test.go b/opensearchapi/api_index_template_test.go index 248240861..0a1d9b632 100644 --- a/opensearchapi/api_index_template_test.go +++ b/opensearchapi/api_index_template_test.go @@ -15,8 +15,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - osapitest "github.com/opensearch-project/opensearch-go/v2/opensearchapi/internal/test" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test" ) func TestIndexTemplateClient(t *testing.T) { diff --git a/opensearchapi/api_index_test.go b/opensearchapi/api_index_test.go index df657f92b..49e93b4df 100644 --- a/opensearchapi/api_index_test.go +++ b/opensearchapi/api_index_test.go @@ -17,8 +17,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - osapitest "github.com/opensearch-project/opensearch-go/v2/opensearchapi/internal/test" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test" ) func TestIndexClient(t *testing.T) { diff --git a/opensearchapi/api_indices-alias.go b/opensearchapi/api_indices-alias.go index da014f841..2aaadeaff 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) type aliasClient struct { diff --git a/opensearchapi/api_indices-analyze.go b/opensearchapi/api_indices-analyze.go index 5568029b4..31de02f9b 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // IndicesAnalyzeReq represents possible options for the /_analyze request diff --git a/opensearchapi/api_indices-block.go b/opensearchapi/api_indices-block.go index f28781005..3d9513a14 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // IndicesBlockReq represents possible options for the index create request diff --git a/opensearchapi/api_indices-cache.go b/opensearchapi/api_indices-cache.go index c0d2d29b2..e3e2bfab7 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // 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 0867f3ae4..7160ba844 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // IndicesCloneReq represents possible options for the index clone request diff --git a/opensearchapi/api_indices-close.go b/opensearchapi/api_indices-close.go index bb2d0d701..99f00e405 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // IndicesCloseReq represents possible options for the index close request diff --git a/opensearchapi/api_indices-count.go b/opensearchapi/api_indices-count.go index dae30489c..389ab779a 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // IndicesCountReq represents possible options for the index shrink request diff --git a/opensearchapi/api_indices-create.go b/opensearchapi/api_indices-create.go index e1353c337..76ba7362c 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // IndicesCreateReq represents possible options for the index create request diff --git a/opensearchapi/api_indices-delete.go b/opensearchapi/api_indices-delete.go index 6e14200a1..ac46f0af4 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // IndicesDeleteReq represents possible options for the delete indices request diff --git a/opensearchapi/api_indices-exists.go b/opensearchapi/api_indices-exists.go index 9f7e0c97a..6b0f2ec60 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // 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 527cbb004..a376c28b3 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // IndicesFieldCapsReq represents possible options for the index shrink request diff --git a/opensearchapi/api_indices-flush.go b/opensearchapi/api_indices-flush.go index cd41ab3cc..9ab38d3dc 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // IndicesFlushReq represents possible options for the flush indices request diff --git a/opensearchapi/api_indices-forcemerge.go b/opensearchapi/api_indices-forcemerge.go index 0b435e7e1..4ca388b9e 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // IndicesForcemergeReq represents possible options for the /_forcemerge request diff --git a/opensearchapi/api_indices-get.go b/opensearchapi/api_indices-get.go index 362df811f..4a6ecdbc4 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // IndicesGetReq represents possible options for the get indices request diff --git a/opensearchapi/api_indices-mapping.go b/opensearchapi/api_indices-mapping.go index 7f6ec0a0d..7e689fe23 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) type mappingClient struct { diff --git a/opensearchapi/api_indices-open.go b/opensearchapi/api_indices-open.go index 81d448707..5197c073d 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // IndicesOpenReq represents possible options for the index open request diff --git a/opensearchapi/api_indices-recovery.go b/opensearchapi/api_indices-recovery.go index c2029be02..edc216bef 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // IndicesRecoveryReq represents possible options for the index shrink request diff --git a/opensearchapi/api_indices-refresh.go b/opensearchapi/api_indices-refresh.go index f89999ad9..bd16be953 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // IndicesRefreshReq represents possible options for the /_refresh request diff --git a/opensearchapi/api_indices-resolve.go b/opensearchapi/api_indices-resolve.go index 6aebd2408..eba983a64 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // IndicesResolveReq represents possible options for the get indices request diff --git a/opensearchapi/api_indices-rollover.go b/opensearchapi/api_indices-rollover.go index d062f8268..a4a496226 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // IndicesRolloverReq represents possible options for the index shrink request diff --git a/opensearchapi/api_indices-segments.go b/opensearchapi/api_indices-segments.go index 9e18ed595..cc78c7eaf 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // IndicesSegmentsReq represents possible options for the index shrink request diff --git a/opensearchapi/api_indices-settings.go b/opensearchapi/api_indices-settings.go index 9188b59bd..70ed77ee1 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) type settingsClient struct { diff --git a/opensearchapi/api_indices-shardstores.go b/opensearchapi/api_indices-shardstores.go index b09bc6ed2..e9584b866 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // IndicesShardStoresReq represents possible options for the index shrink request diff --git a/opensearchapi/api_indices-shrink.go b/opensearchapi/api_indices-shrink.go index 00baf1bd9..3a11b8297 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // IndicesShrinkReq represents possible options for the index shrink request diff --git a/opensearchapi/api_indices-split.go b/opensearchapi/api_indices-split.go index 738d7a2ab..07f085ce3 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // IndicesSplitReq represents possible options for the index split request diff --git a/opensearchapi/api_indices-stats.go b/opensearchapi/api_indices-stats.go index b29c2611a..d5bdccc1d 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // IndicesStatsReq represents possible options for the index shrink request diff --git a/opensearchapi/api_indices-validate.go b/opensearchapi/api_indices-validate.go index 99d407a8c..7e1a3faab 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // IndicesValidateQueryReq represents possible options for the index shrink request diff --git a/opensearchapi/api_indices.go b/opensearchapi/api_indices.go index 8abfa6638..0e8f8a916 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) type indicesClient struct { diff --git a/opensearchapi/api_indices_test.go b/opensearchapi/api_indices_test.go index a2dc0142c..afd621ff0 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" - "github.com/opensearch-project/opensearch-go/v2" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - osapitest "github.com/opensearch-project/opensearch-go/v2/opensearchapi/internal/test" + "github.com/opensearch-project/opensearch-go/v3" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test" ) type dummyInspect struct { diff --git a/opensearchapi/api_info.go b/opensearchapi/api_info.go index 6e228d16b..45277b229 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // Info executes a / request with the optional InfoReq diff --git a/opensearchapi/api_info_test.go b/opensearchapi/api_info_test.go index a4b3771d0..f5186722b 100644 --- a/opensearchapi/api_info_test.go +++ b/opensearchapi/api_info_test.go @@ -14,8 +14,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - osapitest "github.com/opensearch-project/opensearch-go/v2/opensearchapi/internal/test" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test" ) func TestInfo(t *testing.T) { diff --git a/opensearchapi/api_ingest-create.go b/opensearchapi/api_ingest-create.go index f77f6b1df..fce4645a5 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // IngestCreateReq represents possible options for the index create request diff --git a/opensearchapi/api_ingest-delete.go b/opensearchapi/api_ingest-delete.go index d13b627e9..f09622d50 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // IngestDeleteReq represents possible options for the index create request diff --git a/opensearchapi/api_ingest-get.go b/opensearchapi/api_ingest-get.go index 4f1583ae6..a5ad90c82 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // IngestGetReq represents possible options for the index create request diff --git a/opensearchapi/api_ingest-grok.go b/opensearchapi/api_ingest-grok.go index 073a8285e..7870503bd 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // IngestGrokReq represents possible options for the index create request diff --git a/opensearchapi/api_ingest-simulate.go b/opensearchapi/api_ingest-simulate.go index 6346b8d9a..b75f977ec 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // IngestSimulateReq represents possible options for the index create request diff --git a/opensearchapi/api_ingest_test.go b/opensearchapi/api_ingest_test.go index a99d7c4dd..68e4637ff 100644 --- a/opensearchapi/api_ingest_test.go +++ b/opensearchapi/api_ingest_test.go @@ -15,8 +15,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - osapitest "github.com/opensearch-project/opensearch-go/v2/opensearchapi/internal/test" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test" ) func TestIngestClient(t *testing.T) { diff --git a/opensearchapi/api_mget.go b/opensearchapi/api_mget.go index edc071c43..e1994d31d 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // MGet executes a /_mget request with the optional MGetReq diff --git a/opensearchapi/api_mget_test.go b/opensearchapi/api_mget_test.go index 95a5d9283..6576a217b 100644 --- a/opensearchapi/api_mget_test.go +++ b/opensearchapi/api_mget_test.go @@ -16,8 +16,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - osapitest "github.com/opensearch-project/opensearch-go/v2/opensearchapi/internal/test" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test" ) func TestMGet(t *testing.T) { diff --git a/opensearchapi/api_msearch-template.go b/opensearchapi/api_msearch-template.go index ec1021c20..a836a4cc2 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // MSearchTemplate executes a /_msearch request with the optional MSearchTemplateReq diff --git a/opensearchapi/api_msearch-template_test.go b/opensearchapi/api_msearch-template_test.go index 6548a493b..f35efcea3 100644 --- a/opensearchapi/api_msearch-template_test.go +++ b/opensearchapi/api_msearch-template_test.go @@ -16,8 +16,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - osapitest "github.com/opensearch-project/opensearch-go/v2/opensearchapi/internal/test" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test" ) func TestMSearchTemplate(t *testing.T) { diff --git a/opensearchapi/api_msearch.go b/opensearchapi/api_msearch.go index c6bc74097..6abfc7508 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // MSearch executes a /_msearch request with the optional MSearchReq diff --git a/opensearchapi/api_msearch_test.go b/opensearchapi/api_msearch_test.go index 052829dc8..824e2b598 100644 --- a/opensearchapi/api_msearch_test.go +++ b/opensearchapi/api_msearch_test.go @@ -16,8 +16,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - osapitest "github.com/opensearch-project/opensearch-go/v2/opensearchapi/internal/test" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test" ) func TestMSearch(t *testing.T) { diff --git a/opensearchapi/api_mtermvectors.go b/opensearchapi/api_mtermvectors.go index 2a7679971..71f9c14a5 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // MTermvectors executes a /_mtermvectors request with the required MTermvectorsReq diff --git a/opensearchapi/api_mtermvectors_test.go b/opensearchapi/api_mtermvectors_test.go index 496ecffeb..29b86a292 100644 --- a/opensearchapi/api_mtermvectors_test.go +++ b/opensearchapi/api_mtermvectors_test.go @@ -16,8 +16,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - osapitest "github.com/opensearch-project/opensearch-go/v2/opensearchapi/internal/test" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test" ) func TestMTermvectors(t *testing.T) { diff --git a/opensearchapi/api_nodes-hot_threads.go b/opensearchapi/api_nodes-hot_threads.go index 1260a0a7d..ee5f5ad22 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // NodesHotThreadsReq represents possible options for the /_nodes request diff --git a/opensearchapi/api_nodes-info.go b/opensearchapi/api_nodes-info.go index c2ccd6929..cfd3e68a6 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // 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 79dc77fe8..32409095f 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // NodesReloadSecurityReq represents possible options for the /_nodes request diff --git a/opensearchapi/api_nodes-stats.go b/opensearchapi/api_nodes-stats.go index 217c8fa8d..b535b176c 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // NodesStatsReq represents possible options for the /_nodes request diff --git a/opensearchapi/api_nodes-usage.go b/opensearchapi/api_nodes-usage.go index 5b1b13fdf..4b5f392bd 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // NodesUsageReq represents possible options for the /_nodes request diff --git a/opensearchapi/api_nodes.go b/opensearchapi/api_nodes.go index 7c2002ddb..b4f9c94ca 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) type nodesClient struct { diff --git a/opensearchapi/api_nodes_test.go b/opensearchapi/api_nodes_test.go index 1d08efae3..e601b80c7 100644 --- a/opensearchapi/api_nodes_test.go +++ b/opensearchapi/api_nodes_test.go @@ -14,8 +14,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - osapitest "github.com/opensearch-project/opensearch-go/v2/opensearchapi/internal/test" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test" ) func TestNodes(t *testing.T) { diff --git a/opensearchapi/api_ping.go b/opensearchapi/api_ping.go index 5fd5a86e5..e9657d4d7 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // Ping executes a / request with the optional PingReq diff --git a/opensearchapi/api_ping_test.go b/opensearchapi/api_ping_test.go index 9ed35749e..8d9a9acfd 100644 --- a/opensearchapi/api_ping_test.go +++ b/opensearchapi/api_ping_test.go @@ -14,8 +14,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - osapitest "github.com/opensearch-project/opensearch-go/v2/opensearchapi/internal/test" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test" ) func TestPing(t *testing.T) { diff --git a/opensearchapi/api_point_in_time-create.go b/opensearchapi/api_point_in_time-create.go index 5ddefd1df..e0ebaefb4 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // 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 a932f6f05..2e8ae47ff 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // 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 753835903..91688065b 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // PointInTimeGetReq represents possible options for the index create request diff --git a/opensearchapi/api_point_in_time_test.go b/opensearchapi/api_point_in_time_test.go index 278d9331d..6cc6a644d 100644 --- a/opensearchapi/api_point_in_time_test.go +++ b/opensearchapi/api_point_in_time_test.go @@ -15,8 +15,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - osapitest "github.com/opensearch-project/opensearch-go/v2/opensearchapi/internal/test" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test" ) func TestPointInTimeClient(t *testing.T) { diff --git a/opensearchapi/api_rank_eval.go b/opensearchapi/api_rank_eval.go index cdde0c126..d89300566 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // RankEval executes a /_rank_eval request with the required RankEvalReq diff --git a/opensearchapi/api_rank_eval_test.go b/opensearchapi/api_rank_eval_test.go index 19b1e3a9a..af9a3a904 100644 --- a/opensearchapi/api_rank_eval_test.go +++ b/opensearchapi/api_rank_eval_test.go @@ -16,8 +16,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - osapitest "github.com/opensearch-project/opensearch-go/v2/opensearchapi/internal/test" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test" ) func TestRankEval(t *testing.T) { diff --git a/opensearchapi/api_reindex.go b/opensearchapi/api_reindex.go index b1860e325..d2942bcea 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // Reindex executes a / request with the optional ReindexReq diff --git a/opensearchapi/api_reindex_rethrottle.go b/opensearchapi/api_reindex_rethrottle.go index c4ac6e684..64ac0bb61 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // ReindexRethrottle executes a / request with the optional ReindexRethrottleReq diff --git a/opensearchapi/api_reindex_rethrottle_test.go b/opensearchapi/api_reindex_rethrottle_test.go index 3060bb5d7..3d44b6910 100644 --- a/opensearchapi/api_reindex_rethrottle_test.go +++ b/opensearchapi/api_reindex_rethrottle_test.go @@ -18,9 +18,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - osapitest "github.com/opensearch-project/opensearch-go/v2/opensearchapi/internal/test" - "github.com/opensearch-project/opensearch-go/v2/opensearchutil" + "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" ) func TestReindexRethrottle(t *testing.T) { diff --git a/opensearchapi/api_reindex_test.go b/opensearchapi/api_reindex_test.go index dc0d4fe72..c203ca077 100644 --- a/opensearchapi/api_reindex_test.go +++ b/opensearchapi/api_reindex_test.go @@ -18,9 +18,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - osapitest "github.com/opensearch-project/opensearch-go/v2/opensearchapi/internal/test" - "github.com/opensearch-project/opensearch-go/v2/opensearchutil" + "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" ) func TestReindex(t *testing.T) { diff --git a/opensearchapi/api_render_search_template.go b/opensearchapi/api_render_search_template.go index 57805e760..80f439ea3 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // RenderSearchTemplate executes a /_render/template request with the required RenderSearchTemplateReq diff --git a/opensearchapi/api_render_search_template_test.go b/opensearchapi/api_render_search_template_test.go index 1a3fe73c7..c684f4ff3 100644 --- a/opensearchapi/api_render_search_template_test.go +++ b/opensearchapi/api_render_search_template_test.go @@ -16,8 +16,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - osapitest "github.com/opensearch-project/opensearch-go/v2/opensearchapi/internal/test" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test" ) func TestRenderSearchTemplate(t *testing.T) { diff --git a/opensearchapi/api_script-context.go b/opensearchapi/api_script-context.go index 0233ba5f0..203a74e70 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // ScriptContextReq represents possible options for the delete script request diff --git a/opensearchapi/api_script-delete.go b/opensearchapi/api_script-delete.go index a2bffd46c..1e7edcd6a 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // ScriptDeleteReq represents possible options for the delete script request diff --git a/opensearchapi/api_script-get.go b/opensearchapi/api_script-get.go index e2df8c12f..f0a813f88 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // ScriptGetReq represents possible options for the get script request diff --git a/opensearchapi/api_script-language.go b/opensearchapi/api_script-language.go index 76ff88db2..df46b3b52 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // 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 60d833d19..861605942 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // ScriptPainlessExecuteReq represents possible options for the delete script request diff --git a/opensearchapi/api_script-put.go b/opensearchapi/api_script-put.go index 3b5bacf3a..70a1ebbe4 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // ScriptPutReq represents possible options for the put script request diff --git a/opensearchapi/api_script_test.go b/opensearchapi/api_script_test.go index 7f5785cc4..9b951c49c 100644 --- a/opensearchapi/api_script_test.go +++ b/opensearchapi/api_script_test.go @@ -15,8 +15,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - osapitest "github.com/opensearch-project/opensearch-go/v2/opensearchapi/internal/test" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test" ) func TestScriptClient(t *testing.T) { diff --git a/opensearchapi/api_scroll-delete.go b/opensearchapi/api_scroll-delete.go index c5216fafd..e341aa069 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // ScrollDeleteReq represents possible options for the index create request diff --git a/opensearchapi/api_scroll-get.go b/opensearchapi/api_scroll-get.go index 412fa3194..d173ec679 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // ScrollGetReq represents possible options for the index create request diff --git a/opensearchapi/api_scroll_test.go b/opensearchapi/api_scroll_test.go index aca7e8da6..4be665fd5 100644 --- a/opensearchapi/api_scroll_test.go +++ b/opensearchapi/api_scroll_test.go @@ -15,8 +15,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - osapitest "github.com/opensearch-project/opensearch-go/v2/opensearchapi/internal/test" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test" ) func TestScrollClient(t *testing.T) { diff --git a/opensearchapi/api_search-template.go b/opensearchapi/api_search-template.go index 479f3457f..e93ca9c0f 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // SearchTemplate executes a /_search request with the optional SearchTemplateReq diff --git a/opensearchapi/api_search-template_test.go b/opensearchapi/api_search-template_test.go index ed9691a96..84825903a 100644 --- a/opensearchapi/api_search-template_test.go +++ b/opensearchapi/api_search-template_test.go @@ -16,8 +16,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - osapitest "github.com/opensearch-project/opensearch-go/v2/opensearchapi/internal/test" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test" ) func TestSearchTemplate(t *testing.T) { diff --git a/opensearchapi/api_search.go b/opensearchapi/api_search.go index c765fa6cf..46e1213f9 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // Search executes a /_search request with the optional SearchReq diff --git a/opensearchapi/api_search_shards.go b/opensearchapi/api_search_shards.go index a0e59dbd9..2832514a7 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // SearchShards executes a /_search request with the optional SearchShardsReq diff --git a/opensearchapi/api_search_shards_test.go b/opensearchapi/api_search_shards_test.go index d1a08f7fd..7652532db 100644 --- a/opensearchapi/api_search_shards_test.go +++ b/opensearchapi/api_search_shards_test.go @@ -11,8 +11,8 @@ package opensearchapi_test import ( "testing" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - osapitest "github.com/opensearch-project/opensearch-go/v2/opensearchapi/internal/test" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/opensearchapi/api_search_test.go b/opensearchapi/api_search_test.go index 9f92eb2be..4a47bd51a 100644 --- a/opensearchapi/api_search_test.go +++ b/opensearchapi/api_search_test.go @@ -12,8 +12,8 @@ import ( "strings" "testing" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - osapitest "github.com/opensearch-project/opensearch-go/v2/opensearchapi/internal/test" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/opensearchapi/api_snapshot-clone.go b/opensearchapi/api_snapshot-clone.go index 12456852b..19226647c 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // SnapshotCloneReq represents possible options for the index create request diff --git a/opensearchapi/api_snapshot-create.go b/opensearchapi/api_snapshot-create.go index f6121f29f..921cdea80 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // SnapshotCreateReq represents possible options for the index create request diff --git a/opensearchapi/api_snapshot-delete.go b/opensearchapi/api_snapshot-delete.go index 2a73fb5aa..142c1e54e 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // SnapshotDeleteReq represents possible options for the index create request diff --git a/opensearchapi/api_snapshot-get.go b/opensearchapi/api_snapshot-get.go index 06c321f61..5b37bea00 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // SnapshotGetReq represents possible options for the index create request diff --git a/opensearchapi/api_snapshot-restore.go b/opensearchapi/api_snapshot-restore.go index cee208043..ae97dc0eb 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // SnapshotRestoreReq represents possible options for the index create request diff --git a/opensearchapi/api_snapshot-status.go b/opensearchapi/api_snapshot-status.go index 9cfc686db..390744624 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // 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 eb03f79ad..399beb009 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // 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 cd77c7ad0..8fc739a65 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // 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 f418d7363..bfd522a77 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // 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 b68f67a16..b1027c22e 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // 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 b5a76b681..4ca7e1910 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // SnapshotRepositoryVerifyReq represents possible options for the index create request diff --git a/opensearchapi/api_snapshot_test.go b/opensearchapi/api_snapshot_test.go index 65cad3a02..7577f2463 100644 --- a/opensearchapi/api_snapshot_test.go +++ b/opensearchapi/api_snapshot_test.go @@ -17,8 +17,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - osapitest "github.com/opensearch-project/opensearch-go/v2/opensearchapi/internal/test" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test" ) func TestSnapshotClient(t *testing.T) { diff --git a/opensearchapi/api_tasks-cancel.go b/opensearchapi/api_tasks-cancel.go index df1084681..7809315f5 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // TasksCancelReq represents possible options for the index create request diff --git a/opensearchapi/api_tasks-get.go b/opensearchapi/api_tasks-get.go index ed1973130..e4a0eb002 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // TasksGetReq represents possible options for the index create request diff --git a/opensearchapi/api_tasks-list.go b/opensearchapi/api_tasks-list.go index bf4b19f81..7d3ecaf7c 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // TasksListReq represents possible options for the index create request diff --git a/opensearchapi/api_tasks_test.go b/opensearchapi/api_tasks_test.go index 2c0d2f9de..3743c9ed8 100644 --- a/opensearchapi/api_tasks_test.go +++ b/opensearchapi/api_tasks_test.go @@ -18,9 +18,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - osapitest "github.com/opensearch-project/opensearch-go/v2/opensearchapi/internal/test" - "github.com/opensearch-project/opensearch-go/v2/opensearchutil" + "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" ) func TestTasksClient(t *testing.T) { diff --git a/opensearchapi/api_template-create.go b/opensearchapi/api_template-create.go index 96ecc6311..db971f21f 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // TemplateCreateReq represents possible options for the index create request diff --git a/opensearchapi/api_template-delete.go b/opensearchapi/api_template-delete.go index efb707964..ee82b0fd2 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // TemplateDeleteReq represents possible options for the index create request diff --git a/opensearchapi/api_template-exists.go b/opensearchapi/api_template-exists.go index da95bb949..201b1463b 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // TemplateExistsReq represents possible options for the index create request diff --git a/opensearchapi/api_template-get.go b/opensearchapi/api_template-get.go index 38a0ff283..fb8e157ea 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // TemplateGetReq represents possible options for the index create request diff --git a/opensearchapi/api_template.go b/opensearchapi/api_template.go index 218b4137b..799c2bf0c 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) type templateClient struct { diff --git a/opensearchapi/api_template_test.go b/opensearchapi/api_template_test.go index be0511963..68d3d13d2 100644 --- a/opensearchapi/api_template_test.go +++ b/opensearchapi/api_template_test.go @@ -15,8 +15,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - osapitest "github.com/opensearch-project/opensearch-go/v2/opensearchapi/internal/test" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test" ) func TestTemplateClient(t *testing.T) { diff --git a/opensearchapi/api_termvectors.go b/opensearchapi/api_termvectors.go index 7a8be30f7..37bc1202c 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // Termvectors executes a /_termvectors request with the required TermvectorsReq diff --git a/opensearchapi/api_termvectors_test.go b/opensearchapi/api_termvectors_test.go index 6b5b2b28f..abc014132 100644 --- a/opensearchapi/api_termvectors_test.go +++ b/opensearchapi/api_termvectors_test.go @@ -16,8 +16,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - osapitest "github.com/opensearch-project/opensearch-go/v2/opensearchapi/internal/test" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test" ) func TestTermvectors(t *testing.T) { diff --git a/opensearchapi/api_update.go b/opensearchapi/api_update.go index 672f69159..f0c87b278 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // 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 c69c46800..2627a6b8d 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // 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 1072fdc1a..aeec7fc23 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // UpdateByQueryRethrottle executes a / request with the optional UpdateByQueryRethrottleReq diff --git a/opensearchapi/api_update_by_query_rethrottle_test.go b/opensearchapi/api_update_by_query_rethrottle_test.go index 36842cfda..71e9ce24d 100644 --- a/opensearchapi/api_update_by_query_rethrottle_test.go +++ b/opensearchapi/api_update_by_query_rethrottle_test.go @@ -17,9 +17,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - osapitest "github.com/opensearch-project/opensearch-go/v2/opensearchapi/internal/test" - "github.com/opensearch-project/opensearch-go/v2/opensearchutil" + "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" ) func TestUpdateByQueryRethrottle(t *testing.T) { diff --git a/opensearchapi/api_update_by_query_test.go b/opensearchapi/api_update_by_query_test.go index 20a5c9307..494a7fc25 100644 --- a/opensearchapi/api_update_by_query_test.go +++ b/opensearchapi/api_update_by_query_test.go @@ -16,8 +16,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - osapitest "github.com/opensearch-project/opensearch-go/v2/opensearchapi/internal/test" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test" ) func TestUpdateByQuery(t *testing.T) { diff --git a/opensearchapi/api_update_test.go b/opensearchapi/api_update_test.go index 6ac02dc4b..e0fe01b04 100644 --- a/opensearchapi/api_update_test.go +++ b/opensearchapi/api_update_test.go @@ -16,8 +16,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - osapitest "github.com/opensearch-project/opensearch-go/v2/opensearchapi/internal/test" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + osapitest "github.com/opensearch-project/opensearch-go/v3/opensearchapi/internal/test" ) func TestUpdate(t *testing.T) { diff --git a/opensearchapi/error_test.go b/opensearchapi/error_test.go index d67dc2eae..38225247c 100644 --- a/opensearchapi/error_test.go +++ b/opensearchapi/error_test.go @@ -21,7 +21,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/opensearch-project/opensearch-go/v2" + "github.com/opensearch-project/opensearch-go/v3" ) func TestError(t *testing.T) { diff --git a/opensearchapi/inspect.go b/opensearchapi/inspect.go index 657239a8c..616b612f3 100644 --- a/opensearchapi/inspect.go +++ b/opensearchapi/inspect.go @@ -6,7 +6,7 @@ package opensearchapi -import "github.com/opensearch-project/opensearch-go/v2" +import "github.com/opensearch-project/opensearch-go/v3" // 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/internal/test/helper.go b/opensearchapi/internal/test/helper.go index 22adee774..33c60bb40 100644 --- a/opensearchapi/internal/test/helper.go +++ b/opensearchapi/internal/test/helper.go @@ -21,8 +21,8 @@ import ( "github.com/stretchr/testify/require" "github.com/wI2L/jsondiff" - "github.com/opensearch-project/opensearch-go/v2" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" + "github.com/opensearch-project/opensearch-go/v3" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" ) // Response is a dummy interface to run tests with Inspect() diff --git a/opensearchapi/opensearchapi.go b/opensearchapi/opensearchapi.go index 59b41391e..933cccc89 100644 --- a/opensearchapi/opensearchapi.go +++ b/opensearchapi/opensearchapi.go @@ -15,7 +15,7 @@ import ( "strconv" "time" - "github.com/opensearch-project/opensearch-go/v2" + "github.com/opensearch-project/opensearch-go/v3" ) // Config represents the client configuration diff --git a/opensearchtransport/logger_benchmark_test.go b/opensearchtransport/logger_benchmark_test.go index 6e176a1c2..c45eff44b 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/v2/opensearchtransport" + "github.com/opensearch-project/opensearch-go/v3/opensearchtransport" ) func BenchmarkTransportLogger(b *testing.B) { diff --git a/opensearchtransport/opensearchtransport.go b/opensearchtransport/opensearchtransport.go index 199d530b5..e1cfc29c6 100644 --- a/opensearchtransport/opensearchtransport.go +++ b/opensearchtransport/opensearchtransport.go @@ -43,8 +43,8 @@ import ( "sync" "time" - "github.com/opensearch-project/opensearch-go/v2/internal/version" - "github.com/opensearch-project/opensearch-go/v2/signer" + "github.com/opensearch-project/opensearch-go/v3/internal/version" + "github.com/opensearch-project/opensearch-go/v3/signer" ) const ( diff --git a/opensearchtransport/opensearchtransport_benchmark_test.go b/opensearchtransport/opensearchtransport_benchmark_test.go index 977b3e518..988d3ec64 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/v2/opensearchtransport" + "github.com/opensearch-project/opensearch-go/v3/opensearchtransport" ) type FakeTransport struct { diff --git a/opensearchtransport/opensearchtransport_integration_multinode_test.go b/opensearchtransport/opensearchtransport_integration_multinode_test.go index 3173edcc5..cc159f587 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/v2/opensearchtransport" + "github.com/opensearch-project/opensearch-go/v3/opensearchtransport" ) var ( diff --git a/opensearchtransport/opensearchtransport_integration_test.go b/opensearchtransport/opensearchtransport_integration_test.go index 614c71ed0..a62dda33c 100644 --- a/opensearchtransport/opensearchtransport_integration_test.go +++ b/opensearchtransport/opensearchtransport_integration_test.go @@ -39,8 +39,8 @@ import ( "strings" "testing" - "github.com/opensearch-project/opensearch-go/v2/opensearchtransport" - "github.com/opensearch-project/opensearch-go/v2/opensearchutil" + "github.com/opensearch-project/opensearch-go/v3/opensearchtransport" + "github.com/opensearch-project/opensearch-go/v3/opensearchutil" ) var ( diff --git a/opensearchutil/bulk_indexer.go b/opensearchutil/bulk_indexer.go index 8da0b91bc..bbe94bd52 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/v2/opensearchapi" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" ) const defaultFlushInterval = 30 * time.Second diff --git a/opensearchutil/bulk_indexer_benchmark_test.go b/opensearchutil/bulk_indexer_benchmark_test.go index 28ea58881..a83a0eb16 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/v2" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - "github.com/opensearch-project/opensearch-go/v2/opensearchutil" + "github.com/opensearch-project/opensearch-go/v3" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + "github.com/opensearch-project/opensearch-go/v3/opensearchutil" ) var mockResponseBody = `{ diff --git a/opensearchutil/bulk_indexer_example_test.go b/opensearchutil/bulk_indexer_example_test.go index a77e1723a..a4a47dc8f 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/v2" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - "github.com/opensearch-project/opensearch-go/v2/opensearchutil" + "github.com/opensearch-project/opensearch-go/v3" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + "github.com/opensearch-project/opensearch-go/v3/opensearchutil" ) func ExampleNewBulkIndexer() { diff --git a/opensearchutil/bulk_indexer_integration_test.go b/opensearchutil/bulk_indexer_integration_test.go index 9e3e8ed6d..31f9c287c 100644 --- a/opensearchutil/bulk_indexer_integration_test.go +++ b/opensearchutil/bulk_indexer_integration_test.go @@ -37,10 +37,10 @@ import ( "testing" "time" - "github.com/opensearch-project/opensearch-go/v2" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - "github.com/opensearch-project/opensearch-go/v2/opensearchtransport" - "github.com/opensearch-project/opensearch-go/v2/opensearchutil" + "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/v3/opensearchutil" ) func TestBulkIndexerIntegration(t *testing.T) { diff --git a/opensearchutil/bulk_indexer_internal_test.go b/opensearchutil/bulk_indexer_internal_test.go index 1707e14b6..1bd184673 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/v2" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - "github.com/opensearch-project/opensearch-go/v2/opensearchtransport" + "github.com/opensearch-project/opensearch-go/v3" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + "github.com/opensearch-project/opensearch-go/v3/opensearchtransport" ) var infoBody = `{ diff --git a/opensearchutil/json_reader_benchmark_test.go b/opensearchutil/json_reader_benchmark_test.go index d3a00f05a..3cf1c3cc0 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/v2/opensearchutil" + "github.com/opensearch-project/opensearch-go/v3/opensearchutil" ) var _ = fmt.Print diff --git a/opensearchutil/json_reader_integration_test.go b/opensearchutil/json_reader_integration_test.go index 9e1c67ec0..ea0db6521 100644 --- a/opensearchutil/json_reader_integration_test.go +++ b/opensearchutil/json_reader_integration_test.go @@ -36,8 +36,8 @@ import ( "golang.org/x/exp/slices" - "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - "github.com/opensearch-project/opensearch-go/v2/opensearchutil" + "github.com/opensearch-project/opensearch-go/v3/opensearchapi" + "github.com/opensearch-project/opensearch-go/v3/opensearchutil" ) func TestJSONReaderIntegration(t *testing.T) { diff --git a/response_test.go b/response_test.go index 0e5e81949..9fdfc6eae 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/v2" + "github.com/opensearch-project/opensearch-go/v3" ) func TestResponse(t *testing.T) { diff --git a/signer/aws/aws_test.go b/signer/aws/aws_test.go index 564ac01cb..fd493f54c 100644 --- a/signer/aws/aws_test.go +++ b/signer/aws/aws_test.go @@ -21,7 +21,7 @@ import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/stretchr/testify/assert" - osaws "github.com/opensearch-project/opensearch-go/v2/signer/aws" + osaws "github.com/opensearch-project/opensearch-go/v3/signer/aws" ) func TestConstants(t *testing.T) { diff --git a/signer/awsv2/sdkv2signer.go b/signer/awsv2/sdkv2signer.go index aeb00711c..a208ecc49 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/v2/signer" + "github.com/opensearch-project/opensearch-go/v3/signer" ) const ( diff --git a/signer/awsv2/sdkv2signer_test.go b/signer/awsv2/sdkv2signer_test.go index 117add500..c181ccbed 100644 --- a/signer/awsv2/sdkv2signer_test.go +++ b/signer/awsv2/sdkv2signer_test.go @@ -20,7 +20,7 @@ import ( "github.com/aws/aws-sdk-go-v2/config" "github.com/stretchr/testify/assert" - "github.com/opensearch-project/opensearch-go/v2/signer/awsv2" + "github.com/opensearch-project/opensearch-go/v3/signer/awsv2" ) func getCredentialProvider() aws.CredentialsProviderFunc {