Elasticsearch Aggregations - Building E-Commerce Facets
If you have ever shopped online, you have used facet filtering. When you search for “shoes” and then narrow down your results by clicking on “Brand: Nike,” “Size: 10,” and “Price: $50 - $100” in the sidebar, you are interacting with facets. In the world of Elasticsearch, building these sidebar filters requires using a feature called Aggregations. In this guide, we will explore how to successfully build e-commerce facet filtering using Elasticsearch aggregations. We’ll walk through how to construct these queries, how to handle user selections with post_filter, and finally, how purpose built search engines offer a different approach to managing this complexity as your application grows. ...