This lab will help you practice querying data in Redis using Redis modules (RediSearch).
You will learn how indexing enables more advanced and efficient queries.
This lab uses the Redis Movies dataset that includes:
- Movies
- Theaters
- Users
- Ratings
- Search indexes
Dataset and import instructions:
https://github.com/RediSearch/redisearch-getting-started/blob/master/docs/006-import-dataset.md
Make sure the dataset is imported before starting the lab.
RediSearch indexes are created during dataset import.
Example index:
idx:movies
Indexes enable:
- Text search
- Numeric filtering
- Sorting
- Aggregation
Find movies that start with "The Lord of the Rings".
FT.SEARCH idx:movies "The Lord of the Rings*"Find all movies labeled as "Action".
Retrieve the top 5 highest-rated movies.
- Modify query #10 to return the top 10 rated movies
- Find Action movies released after 2015 with a rating above 8
- Compare performance between Basic Redis queries and RediSearch queries
Happy querying! 🚀
