Skip to content

Commit 47339e7

Browse files
committed
example: Refactor create_index to latest API changes
1 parent 92f5b62 commit 47339e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/create_index/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func main() {
1818
zinc.SetBasicAuth(user, passwd),
1919
)
2020

21-
idx := cli.IndexService().
21+
idx := cli.CreateIndex().
2222
Name("test_index").
2323
IndexStorageType(meta.IndexStorageDisk).
2424
AddMappingProperty(meta.NewIndexMappingProperty("@timestamp", meta.IdxPropertyDate)).

0 commit comments

Comments
 (0)