Faceting

“Facets” are the lists of field values that appear on your application’s search page. The lists are populated from the set of matching items, and are used to “drill down” and better “focus” the search. See our Faceting video for a brief demonstration.

Faceting is a Profile-level feature. Changes to the list of facets can be assigned to one or more Profiles as desired (see below).

Avoid Text Facets

Experience shows that facets based on text fields are unsatisfactory. Users complain that the facet values are truncated. The solution is to use a string field instead.

See Facets: Text vs. String for an explanation and example.

The Faceting screen lets you choose which fields to use for facet generation. For each facet list, you can assign a user-friendly display label. Limiting the number of displayed values keeps the facet lists short and easy to use.

Faceting configuration panel with

Choose an index field from the Facet Field droplist. Give it a human-friendly Label. Set the Max Facet Values to show in the list. Decide whether to sort the values by Count or Alphanumeric (asc/desc) order. The (+) button on the right adds the new facet to the list of facets below. For time-based values (for example, months or days of the week), UI Kits implementations can display values in chronological order.

Select a facet and click the Move Up and Move Down buttons to control how the facets will be ordered on the search page. 

Controls for moving facet values up or down in the sort order.

Note the Reload Schema icon above the list of fields. Try reloading the schema if you can’t find a field in the list. Changes to your website’s Solr schema are not automatically updated in Site Search field lists.

Reload Schema button located above the facet field list in the Site Search admin interface.

Click the Save Draft button before you leave or refresh a page. Otherwise, changes can be lost. The Publish button updates the search configuration to make the changes active. 

When you save a draft, Site Search shows a blue dot in the navigation menu to indicate pending changes for the current app, language, and search profile. The configuration page also shows a banner. Status banners show pending draft, saved draft, and published states.

View the facet changes by navigating to the Hosted Search Experience. Regenerate and then View to see the changed facets.

When validating time-based facets, verify that month/day-of-week values appear in chronological order where configured. For custom UI implementations, use beforeFacetsRender in your facets widget configuration.

Publish to Multiple Profiles

Add-On Feature

This is an optional feature that can be added to your SearchStax account. Ask your Account Representative for details.

When you Publish changes to the Facets list, Site Search gives you an opportunity to copy the full list to your selection of profiles. (The feature overwrites the selected Profiles with the current Facets list.)

Publish to Profile(s) dialog showing faceting changes with profile selection options and All Profiles checked.

Simply check off the profiles where you want to share the Facets settings and click the Publish button.

Articles in this section