The documentation for Redisearch module is not the best at the moment. Can someone please give short examples that will answer these questions? Thank you
- How to use Redisearch module with redis-py?
- How to sort by multiple fields?
- How to paginate results?
Posting the answer. I spent quite some time to figure all these out, so hopefully it will save time for some of you. Redisearch is truly an amazing technology that deserves to be used by many.
First and foremost you have to create an index to use redisearch:
all these hashes will be indexed because their key has the prefix 'flower:'
searching:
Point out mistakes and improvements, I'll gladly edit the answer.