Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

HomeDev GuideRecipesAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

Facets

Introduces facets in Optimizely Search & Navigation. Facets are used for grouping documents based on some criterion, specific terms or date range.

Facets group documents based on criteria, such as specific terms or date ranges. Typical uses of facets are tag clouds and faceted navigation, which let site visitors restrict search results to selected categories, such as product types, price ranges, or author names.

Facets provide aggregated data based on a search query and are requested and retrieved along with regular search requests. By default, the search query scopes facets.

Elasticsearch, upon which Optimizely Search & Navigation is built, features several facets ranging from simple to advanced.

The .NET client API in Optimizely Search & Navigation supports facets based on:

📘

Note

Normally, facets are affected by filters, just like search results. However, via the FilterHits method, you can retrieve facets without applying the filters applied to search results . Therefore, see the Filter and FilterHits methods, because there are significant differences between them when working with facets.