---
sourceDocument: Brazil ServiceNow AI Platform user interface
sourceDocumentLink: https://www.servicenow.com/docs/r/platform-user-interface

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil ServiceNow AI Platform user interface

ft:clusterId :

    - platux

bundleId :

    - platux

workflow :

    - Platform


---

# Zing search in Service Portal

# Zing search in Service Portal {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 3 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Zing search in Service Portal

The Service Portal integrates with the ServiceNow Zing text indexing and search engine, enabling efficient indexing and searching of record data by table within your ServiceNow instance.
Zing is fully built on ServiceNow code and operates within the relational database model.
This capability allows you to create configurable search sources that retrieve searchable data from one or more instance tables or external sites, enhancing search functionality for end users in the Service Portal.
Show full answer Show less  

## Search Sources

Search sources define where and how searchable data is retrieved and displayed in Service Portal searches. There are two configuration options:

* **Simple search sources:** These are configured by defining a single ServiceNow table as the source. They use the default Zing search engine settings and are straightforward to set up.
* **Advanced search sources:** These use server-side data fetch scripts to pull data from multiple tables or external sites, offering full control over search behavior. They support complex queries beyond single-table searches but require scripting expertise.

## Text Index Groups

Text index groups control how search results are combined and weighted from multiple sources. They are an AI Platform feature and allow you to associate a portal with common search rules for unified results across search sources. For example, the base system's `portalindexgroup` includes Catalog items and Knowledge tables to provide combined search results. Note that text index groups do not support external search sources.

## Search Suggestions and Typeahead

Service Portal supports search suggestions, which replace traditional typeahead search behavior. This can be controlled via the `glide.serviceportal.searchasyoutypebehavior` system property. Search widgets automatically adapt to whichever behavior is enabled, improving user experience by offering relevant suggestions as users type.

## Search Facets

Search facets enable users to filter and refine search results for more targeted outcomes. Facets can be based on indexed table fields (e.g., Active, Author) or query conditions (e.g., Updated after last week). Key points include:

* Only indexed fields should be used for facets to ensure fast and optimized search performance.
* Facets render in the Faceted Search widget on the `spsearch` page and are enabled by default in new instances.
* For upgrades, facets must be enabled by activating a record in the Page Route Maps table.
* Facets can be configured for simple search sources by defining field-based filters or query conditions.
* Advanced search sources can use facet generation scripts and APIs to create complex facets with multi-choice options and mapped queries.

## Practical Configuration Guidelines

* **Define search sources:** Configure either simple or advanced search sources depending on your data requirements and complexity.
* **Enable or disable search facets:** Facets improve end-user filtering but can be disabled per search source using system properties if needed.
* **Populate search suggestions:** For upgraded instances, run scripts to prepopulate suggestions or allow suggestions to build dynamically as users search.
* **Add text index groups to portals:** Use this to unify and customize search results presentation across multiple data sources.
* **Set default search sources:** Control which search sources are used by default using the `glide.serviceportal.defaultsearchsources` property.
* **Contextual search:** Limit search results on specific pages by configuring search sources available to type-ahead search widget instances.

## Benefits for ServiceNow Customers

By leveraging Zing search in Service Portal, customers can:

* Provide fast, relevant, and configurable search experiences tailored to their data and user needs.
* Easily combine and weight results from multiple sources for comprehensive search results.
* Enable end users to refine their searches using facets, improving findability and efficiency.
* Customize search behavior with advanced scripting options for unique or external data integrations.
* Maintain control over search suggestions to enhance usability and reduce search time.  
Service Portal search supports the ServiceNow Zing text indexing and search engine. Zing allows you to index and search record data by table and is created entirely with ServiceNow code and implemented within the relational model.

To make data searchable from Service Portal, you create search sources that fetch data from a single table within your ServiceNow instance, from multiple ServiceNow tables, or from an external site.

## Search sources {#zing-search-service-portal__section_iqf_zkd_ycb}

A search source is a record that describes the behavior and source of searchable data. A search source defines:

* Where to retrieve search data from.
* Whether search suggestions can populate the search field based on user input.
* How a search entry displays in the search result page.
{#zing-search-service-portal__ul_mgb_mgb_qz}

Search sources have simple and advanced configurations.  

Simple
:   Define a table within your ServiceNow instance as a source of searchable data. To learn more, see [Define a search source](https://www.servicenow.com/docs/VjnvBg6N4UxYrWg4jPXrBg "Configure a basic search source to query data from an instance table, or configure an advanced data fetch script to query data across multiple tables and data sources, or to pull data from anywhere on the web.").

    When you create a simple search source, Service Portal uses the search engine settings configured on your instance. To learn more, see [Zing text indexing and search engine](https://www.servicenow.com/docs/access?context=c_ZingTextSearch&version=brazil&pubname=brazil-platform-administration&ft:locale=en-US).

Advanced

:   Define a data fetch script to return data. A data fetch script executes on the server and returns a result array to the search widget. This method is more complex, but offers complete power over how a search executes. You
    are not limited to querying single tables within ServiceNow and can define a script that fetches data from multiple tables, or from anywhere on the web. To learn more, review the [Tutorial: set up an external knowledge base search source](https://www.servicenow.com/docs/oNqSPUNDSsJncaYJuaahcA "Define an advanced search source to return data from any source on the Internet. To understand the power of search sources, follow this tutorial to set up an external knowledge base search source.").

    Note:  
    Search facets may not behave as expected if integrated into an advanced search source that queries data from a non- ServiceNow site.

## Text index groups {#zing-search-service-portal__section_irs_gll_rhb}

A text index group defines how users see search results. For example, combine search results from several sources, or set the weight of certain fields.
Text index groups are a ServiceNow AI Platform feature. To learn more, see [Configure multiple
tables for indexing and searching](https://www.servicenow.com/docs/access?context=index-multiple-tables&version=brazil&pubname=brazil-platform-administration&ft:locale=en-US).

Associate a portal with a text index group to create common search rules and to combine search results from all search sources in the group. If you have a custom search source or portal, consider whether you want to use the base system portal_index_group text index group, or create your own text index group. The base system text index group includes the Catalog items and Knowledge tables. When a user searches for an item in Service Portal, they see combined results from these tables. To add an index group to a portal, see [Add a text index group to a portal](https://www.servicenow.com/docs/Zxgfzu~tF69RiXq8Vv~_Gw "Define how users see search results. For example, combine search results from several sources, or set the weight of certain fields.").  
Note:  
Text index groups do not support external search sources.

## Search suggestions and typeahead search {#zing-search-service-portal__section_tvx_m2r_fyb}

Search suggestions replaces typeahead search in Service Portal. Update the glide.service_portal.search_as_you_type_behavior system property to change this behavior. For more information, see [Enable and disable search suggestions](https://www.servicenow.com/docs/access?context=enable-search-suggestions&version=brazil&pubname=brazil-platform-administration&ft:locale=en-US). Service Portal search widgets automatically use whichever feature you enable.

## Search facets {#zing-search-service-portal__section_tjj_fyt_5cb}

Enable your end users to filter search results for a more meaningful result set. Facets can return results based on:  
* Fields in a table such as Active or Author.
* Query conditions such as \[Updated\]\[After\]\[Last week\].
{#zing-search-service-portal__ul_ucx_x2j_vbb}  
Note:  
Only set search facets for indexed fields. Fields that are not indexed may take longer to return results and are not optimized for a fast search experience. Learn more: [Configure a table for indexing and searching](https://www.servicenow.com/docs/access?context=configure-single-table-for-indexing&version=brazil&pubname=brazil-platform-administration&ft:locale=en-US).

Search facets render in the Faceted Search widget on the sp_search page.
In new instances, search facets are enabled by default. If upgrading from a previous release, enable search facets by activating a record in the Page Route Maps \[sp_page_route_map\] table. See [Enable search facets](https://www.servicenow.com/docs/9w6BkGu0hNaAkU1aXMep2A "In new instances, search facets are enabled by default. If upgrading from a previous release, enable search facets by activating a record in the Page Route Maps [sp_page_route_map] table.").  

Simple
:   Enable end users to refine search results for a simple search source. You can create facets for a table search source that return results based on field values or query conditions. See [Add facets to a simple search source](https://www.servicenow.com/docs/9AWIvI6OGJ10bEpCprDFdw "Enable end users to refine search results for a simple search source. You can create facets for a table search source that return results based on field values or query conditions.").

Advanced

:   Define facets for advanced search sources using the Facet generation script on the search source record. Use facet APIs to create facets and assign ServiceNow facet items or mapped queries to the facet.

    {#zing-search-service-portal__table_lhy_415_5cb__entry__2}

    | API | Use |
    |-|-|
    | [SPScriptedFacetService - Scoped](https://www.servicenow.com/docs/access?context=SPScriptedFacetServiceScopedAPI&version=brazil&pubname=brazil-api-reference&ft:locale=en-US) | Creates a single or multi choice facet. |
    | [SPScriptedFacet - Scoped](https://www.servicenow.com/docs/access?context=SPScriptedFacetScopedAPI&version=brazil&pubname=brazil-api-reference&ft:locale=en-US) | Defines facet items, filters, or mapped queries for the facet. |
    [ ]

    {#zing-search-service-portal__table_lhy_415_5cb}
* **[Define a search source](https://www.servicenow.com/docs/VjnvBg6N4UxYrWg4jPXrBg)**   
  Configure a basic search source to query data from an instance table, or configure an advanced data fetch script to query data across multiple tables and data sources, or to pull data from anywhere on the web.
* **[Enable search facets](https://www.servicenow.com/docs/9w6BkGu0hNaAkU1aXMep2A)**   
  In new instances, search facets are enabled by default. If upgrading from a previous release, enable search facets by activating a record in the Page Route Maps \[sp_page_route_map\] table.
* **[Add facets to a simple search source](https://www.servicenow.com/docs/9AWIvI6OGJ10bEpCprDFdw)**   
  Enable end users to refine search results for a simple search source. You can create facets for a table search source that return results based on field values or query conditions.
* **[Disable facets for a search source](https://www.servicenow.com/docs/TUYP8j9MlM5S_nfUsNroqw)**   
  Disable facets for one or more search sources by adding a system property. Once disabled, the search source does not display search facets in the Faceted Search widget on the sp_search page. You can disable facets for simple or advanced search sources.
* **[Populate search suggestions in Service Portal](https://www.servicenow.com/docs/BJnOD_R_kloZgoX_vV_fpw)**   
  If you are upgrading from a previous release, run a script to populate search suggestions with data from a platform search table to provide search suggestions to your users. Alternatively, you can wait until users search for keywords instead of running this script.
* **[Add a text index group to a portal](https://www.servicenow.com/docs/Zxgfzu~tF69RiXq8Vv~_Gw)**   
  Define how users see search results. For example, combine search results from several sources, or set the weight of certain fields.
* **[Set the default portal search source](https://www.servicenow.com/docs/naUN4UOwUczRda7AjKE64Q)**   
  Use the glide.service_portal.default_search_sources system property to define default search sources.
* **[Configure Search Sources available on a page](https://www.servicenow.com/docs/Fdv9ozfaKm4thuwclNvzPA)**   
  Use contextual search to limit search results for an instance of the type-ahead search widget.

