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: