无法从 Redisearch 中在分片 Redis 中获取所有数据。

huangapple go评论95阅读模式
英文:

Unable to get all data from redisearch when sharding redis

问题

当我尝试使用redisearch命令从Redis获取一些数据时,ft.search index:something *,我只能获得我所有Redis节点中存在的一小部分数据。

在我的情况下,我得到了19个条目中的5个。我有6个节点,使用redisjson + redisearch。

有人知道如何解决这个问题吗?我使用node-redis npm包创建我的索引并使用redisearch命令。

我尝试查看PARTITIONS和RSCoordinator,似乎没有帮助。

英文:

When I try to get some data from redis using the redisearch command; ft.search index:something * I only get a small portion of what exists across all my redis nodes.

In my case I got 5 entries out of 19. I have 6 nodes, using redisjson + redisearch.

Does anyone how to solve this issue? Using the node-redis npm package; I create my indexes and use redisearch commands.

I tried looking through PARTITIONS and RSCoordinator, nothing seemed to help

答案1

得分: 1

部分结果可能是由于超时引起的。请尝试在FT.SEARCH命令中添加 TIMEOUT 0,以查看是否获取所有结果。详情请参阅此处

英文:

Partial results could be due to timeout. Please try adding TIMEOUT 0 to FT.SEARCH command, to see you get all results.
See also https://redis.io/docs/stack/search/configuring/#timeout

huangapple
  • 本文由 发表于 2023年3月7日 05:57:46
  • 转载请务必保留本文链接:https://go.coder-hub.com/75656205.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定