Trying to run redisearch-go client example and wont compile

184 Views Asked by At

When I try to run the code on redisearch-go/client

https://github.com/RedisLabs/redisearch-go

I get the following error.

./docsearch.go:37:41: cannot use []redisearch.Document literal (type []redisearch.Document) as type redisearch.Document in argument to c.Index
./docsearch.go:37:41: cannot use redisearch.DefaultIndexingOptions (type redisearch.IndexingOptions) as type redisearch.Document in argument to c.Index

I am new to golang but it looks correct to me.

0

There are 0 best solutions below