Advertisement
Beginner Redis, RedisSearch (Full Text Search)

What is RedisSearch, and what capabilities does it add to a Redis deployment?

Short answer

RedisSearch adds powerful indexing and querying capabilities to Redis, letting you perform full text search, filter and sort by numeric or tag fields, and run complex queries across your data directly within Redis, capabilities that go well beyond what Redis's core commands…

Save Redis mock interview
Advertisement
AModel answer
RedisSearch adds powerful indexing and querying capabilities to Redis, letting you perform full text search, filter and sort by numeric or tag fields, and run complex queries across your data directly within Redis, capabilities that go well beyond what Redis's core commands alone can provide.
Example

FT.CREATE idx ON HASH PREFIX 1 product: SCHEMA name TEXT price NUMERIC FT.SEARCH idx 'laptop'

Real-world example
An online store adds RedisSearch to their existing Redis deployment, gaining the ability to let customers search for products by name while also filtering by price range, all within the same Redis instance already used for caching.
Likely follow-ups
  • Does RedisSearch work with data already stored in Redis using hashes and JSON documents?
  • How does search performance compare to a dedicated search engine?
Related topics