1

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 Answers1

1

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

oshadmi
  • 136
  • 3
  • I tried that, however I still get the same exact partial results with timeout 0. – peterhanania Mar 07 '23 at 15:47
  • @peterhanania So it works well when not clustered and gets partial results when clustered. What about a single shard? Can you please share a full reproduction? – oshadmi Mar 13 '23 at 10:11
  • That's right, when not clustered it works fine. Steps: 1- Run several redis nodes with redisearch and redisjson and link them. 2- Add data using redisjson 3- Run `ft.search index:something *` and you will get some of the results not all – peterhanania Mar 14 '23 at 18:29
  • @peterhanania Can you please share the data and number of nodes so we can try to reproduce? If cannot share the data, can you please specify the total number of keys? (to share more privately, can send to omer.shadmi@redis.com) – oshadmi Mar 23 '23 at 16:05
  • I created my nodes using my repo: https://github.com/Pogy-Bot/redis-cluster-example, you can use the production instructions or go to the "clustering development" branch for development, they both had the same outcome. Regarding the key length, I got 5 entries out of 19 while clustering. I did the tests a while ago, if you want you can reach out to me at peter@pogy.gg and I can provide more details. – peterhanania Mar 24 '23 at 17:57
  • Did you get any resolution on this? I am facing the same issue. – Anurag Wagh Aug 02 '23 at 19:18