代码之家  ›  专栏  ›  技术社区  ›  Tommie Jones

尝试运行redisearch go客户端示例,但无法编译

  •  1
  • Tommie Jones  · 技术社区  · 6 年前

    当我尝试在redisearch go/client上运行代码时

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

    ./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
    

    0 回复  |  直到 6 年前