O'Reilly logo

Redis Applied Design Patterns by Arun Chinnachamy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Redis in Autosuggest

In Chapter 5, Redis in an E-commerce Inventory System, we saw how to use Redis in an e-commerce catalog for product and inventory management. We also saw how to perform a catalog search. While Redis is not the best solution for searching a catalog, it is ideal when it comes to implementing an autosuggest and basic facet search.

In this chapter, we are going to see how to use Redis to build a basic autocomplete or autosuggest server. Also, we will see how to build a faceting engine using Redis. To build such a system, we will use sorted sets and operations involving ranges and intersections. To summarize, we will focus on the following topics in this chapter:

  • Autocompletion for words
  • Multiword autosuggestion using a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required