Search Results component setup

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

The Search Results component enables users to browse through search results that match their search term.

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 Results 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-results-config-content-tree.png"] Alt text: Component with label displayed in the content tree

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

    • Click anywhere within the component.
    • Select the Search Results 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 Results component properties

Configure the Search Results data and metadata.

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

Field Property Description
Is component loading isLoading Option to show the loading state of the search results component.
Search result metadata searchResultMetadata Metadata for the search results component.
Genius results geniusResults Data source from which to pull search results.
Search results searchResults Data source from which to pull search results.
Search context config searchContextConfigId Name of the search context configuration record to reference.

Search Results component events

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

The Events tab shows the events used by the Search Results 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 Results 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
PAGINATION_BUTTON_CLICKED User selects to view next or previous page of search results.
SEARCH_EXECUTED After the component displays results for the correct spelling of search term, the user clicks the Show results for... link.
DECLARATIVE_ACTION User clicks on a declarative action control or search result card.
Search documentation
Search document titles and file paths on the brazil branch