Merge pull request #320 from opensearch-project/go-client-error

Go bug fix
This commit is contained in:
Ashwin Kumar 2021-12-09 12:47:19 -08:00 committed by GitHub
commit ae117cead3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,8 +68,8 @@ func main() {
}`)
// Create an index with non-default settings.
res := opensearchapi.CreateRequest{
Index: IndexName,
res := opensearchapi.IndicesCreateRequest{
Index: IndexName,
Body: mapping,
}
fmt.Println("creating index", res)