Search Facets component setup

task brazil Updated Sep 10, 2026 2 min read search-facets-component-uib-setup.md
Raw file servicenow.com

Give users a way to narrow down search results by clicking on the metadata value based on the current search results.

Before you begin

This task assumes you have placed the component on the page and are ready to configure the properties and events. For instructions on accessing and using features in UI Builder, see Customize UI Builder pages using components.

Note: This document describes the latest component functionality. Go to the store to make sure you have the latest version of the component.

Role required: admin or ui_builder_admin

Procedure

  1. Define a label for your Search Facets that differentiates it from other components in the content tree.

    A label makes finding the component easier in a large list of components. For instructions on using the content tree, see Manage UI pages and page variants.

    [Omitted image "search-facets-content-tree.png"] Alt text: Image showing Search Facets content tree

  2. Select the Search Facetss component, using one of these methods:

    • Click anywhere within the component.
    • Select the Search Facets label you created for your component in the content tree. The property fields appear in the Config tab in the setup panel on the right.

Parent Topic:UIB Setup Information

Search Facets component properties

Narrow down the search by defining the label and filters of your Search Facets component with these properties.

To configure the properties, enter either static or dynamic input. Enter dynamic input by selecting the input type.

Field Property Description
Facets facets Search Facets response received from data broker
Label label The text in the label
Selected options selectedOptions The options that are selected
Search context config searchContextConfigId sys_id for the search application from sys_search_context_config table
Search term searchTerm Term that has been searched

Search Facets component events

Select event handlers to configure the actions (events) provided with the Search Facets component.

The Events tab shows the events used by the Search Facets component. To view the available events, select + Add event mapping. Select the event in the list to add one or more event handlers.

Event handlers

Event handlers work with data resources to link the Search Facets actions to the data you want to display to your users. Select the event in the list to add one or more event handlers.

For instructions on adding event handlers to an event, see Configure an event handler.

Event Description
SN_SEARCH_FACETS#SELECTIONS_UPDATED Dispatched when a user selects any of the facet options
Search documentation
Search document titles and file paths on the brazil branch