Refining search results by tagging based facets

The out-of-the-box feature of tagging can be used to provide relevance to content or items so that users can search content easily and quickly. Tagging can be used to prepare a tag cloud and, based on this, users can filter results directly. In the previous recipe, we used the same kind of concept with the custom Categories field.

In this recipe, you will learn how to use tagging to create facets. When a user searches any keyword, we will find all the related tags from the search results so that users can filter results based on these tags.

Getting ready

For this recipe, we will use the Book template that we created in the previous recipe.

How to do it…

We will first create multiple tags and assign them ...

Get Sitecore Cookbook for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.