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.
We will first create multiple tags and assign them to relevant books:
Create multiple unique tags related to books under
/sitecore/system/Settings/Buckets/TagRepository
. This is a bucketed folder so you might not be able to get a list of items directly.Create multiple books and assign relevant tags...