Solr faceted search

Solr Faceted Search

Rate this article

Share this article
Faceted search is a technique that involves augmenting traditional search techniques with a faceted navigation system, allowing users to narrow down search results by applying multiple filters based on the faceted classification of the items. Building a Solr faceted search is by no means easy, but this article will show some ways around it. Solr faceted search

Why have a faceted search?

Faceted search allows a customer who knows what they want to narrow by what’s important, based on the search terms they use, and without limiting their choice to exactly one item. It also helps those who aren’t sure what they want to outline some of the attributes they might want to consider. They can also be useful for teaching your customers the kinds of questions to ask. Statistics show that users prefer to use search for content discovery rather than navigation. So having facets will improve the search experience on your website greatly.

Create a faceted search for your website

Adding a Solr faceted search

Solr does have support for facets but it is not all that easy to set it up from scratch. As a way around the complex set up process, take a look at ExpertRec.
  1. Navigate to https://cse.expertrec.com/newuser?platform=cse and signup with your Google ID.
  2. Enter your website’s URL when prompted. You can select a server location near you and add the URL of your sitemap if you wish to. These will be auto-detected otherwise.
  3. You can play around with the settings and customize the UI as the crawl runs. Once it is complete, you can check out a fully functional demo before taking the search to your website.
  4. You can take the search to your website with little to no effort. All you need to do is to paste the code snippet available on the dashboard on your website.
ExpertRec comes with more customization options that you can explore. You can read this article to find a more detailed guide on the installation and configuration. Of course, you can make a Solr faceted search from scratch if you want to. But this is not recommended as it will take up developer time

Create a faceted search for your website

What is Solr faceted search?

Solr faceted search is a feature of Apache Solr that allows you to categorize search results by field values and display counts for each category. It is commonly used in ecommerce and content sites to build filter-based navigation.

How do I implement faceted search in Solr?

Add facet parameters to your Solr query, such as facet=true and facet.field=category. Solr returns the search results along with facet counts for each unique value in the specified fields, which you can display as filter options in your UI.

Is Solr good for ecommerce search?

Solr is powerful for ecommerce search but requires significant technical expertise to set up, tune, and maintain. For most businesses, a managed search solution provides better results with less engineering effort.

Are you showing the right products, to the right shoppers, at the right time? Contact us to know more.
You may also like