Faceting is a technique for ordering and filtering search results by specific aspects or dimensions, the facets. It allows users, e.g. the visitors of larger online shops, to specify item properties they are particularily interested in, which are then applied as filters. This reduces the amount of items presented, accelerating the decision making process. So, faceting combines classical text-based searching with property-based searching to improve the user experience and - with shops - the sales figures.
Since faceted searching is based on properties, having a well-maintained inventory of properly categorized content objects is a must. With Scrivito, you can equip your object classes with attributes of various types (e.g. string
, stringlist
, enum
, or multienum
) for categorizing your content according to your or your customers' needs.
In this article, we illustrate how one could offer a product search. We'll do this in two steps. The first one covers the full-text-search part which is then supplemented by tag-based restriction of the search result in the second step.