From 56a7e26248d73d74576fea0baa1df311507102d7 Mon Sep 17 00:00:00 2001 From: alexisvisco Date: Wed, 27 Mar 2019 11:33:04 +0100 Subject: [PATCH] update readme --- readme.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/readme.md b/readme.md index 11070a5..52f1e62 100644 --- a/readme.md +++ b/readme.md @@ -21,7 +21,6 @@ import ( ) func main() { - ingester, err := sonic.NewIngester("localhost", 1491, "SecretPassword") if err != nil { panic(err) @@ -29,10 +28,12 @@ func main() { // I will ignore all errors for demonstration purposes - _ = ingester.Push("movies", "general", "id:6ab56b4kk3", "Star wars") - _ = ingester.Push("movies", "general", "id:5hg67f8dg5", "Spider man") - _ = ingester.Push("movies", "general", "id:1m2n3b4vf6", "Batman") - _ = ingester.Push("movies", "general", "id:68d96h5h9d0", "This is another movie") + _ = ingester.BulkPush("movies", "general", []sonic.IngestBulkRecord{ + {"id:6ab56b4kk3", "Star wars"}, + {"id:5hg67f8dg5", "Spider man"}, + {"id:1m2n3b4vf6", "Batman"}, + {"id:68d96h5h9d0", "This is another movie"}, + }) search, err := sonic.NewSearch("localhost", 1491, "SecretPassword") if err != nil {