update readme
This commit is contained in:
parent
ed961675e5
commit
56a7e26248
1 changed files with 6 additions and 5 deletions
11
readme.md
11
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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue