diff --git a/_clients/go.md b/_clients/go.md index 75ee300e..f1914134 100644 --- a/_clients/go.md +++ b/_clients/go.md @@ -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)