Search code examples
redisspring-data-redisredisearch

How to get all the documents from an index in Redisearch?


I am using RediSearch and storing the data in an Index through documents. I want to get all the documents from the Index, please suggest.


Solution

  • This is half of an answer but perhaps it will spark a solution for you.

    I can't speak to the Spring Data Redis part—not my jam—but in RediSearch itself you can get all the documents in the index by simply passing * as your query:

    > FT.SEARCH my:index *