Facet form
Summarize
Summary of Facet form
The Facet form in ServiceNow’s AI Search application enables you to create facet refinement filters within search configurations. Facets help users narrow down search results by selecting specific field values from indexed source tables. This functionality enhances search relevance and user experience by filtering results based on selected criteria.
Show less
Key Features
- Name and Label: Define a unique name and display label for each facet filter.
- Facet Field: Specify one or multiple fields from AI Search indexed source tables to generate refinement filters. Fields can be listed as table-qualified (e.g.,
kbknowledge.author) or unqualified cross-table fields (onlylanguageandtagssupported). All fields in a list must be the same type. - Special Facet Field Cases:
- Faceting on parent table fields includes values from child tables.
- Faceting on child table fields requires specifying the parent table name as the qualifier.
- Dot-walk fields from referenced tables can be used with dot-separated qualifiers (e.g.,
kbknowledge.author.department), though multi-level references should be minimized due to performance impacts.
- Supported Field Types: Best results occur with fields having few unique values such as Choice, Reference, String, True/False.
- Facet Type: Determines selection behavior and filtering logic:
- Single Select: Only one field value can be selected for filtering.
- Multi Select And: Multiple values can be selected; results must contain all selected values.
- Multi Select Or: Multiple values can be selected; results contain any selected values. Initial selectable values are limited to those in the current result set, but selections keep previously available values selectable.
Note: Multi-select facets can increase URL length in search queries; test to avoid exceeding browser URL length limits.
- Facet Value Limit: Controls the maximum number of distinct values shown in the facet filter.
- Order and Sort: Define the facet’s display order in the search UI and sort facet values either by count (descending) or alphabetically by label.
- Activation: Option to activate or deactivate facets within the search application configuration.
Practical Application for ServiceNow Customers
Using the Facet form, customers can tailor AI Search applications to provide intuitive and efficient search refinement options. By carefully selecting fields and facet types, customers ensure users can filter search results effectively, improving content discoverability and user satisfaction. Attention to field types, facet value limits, and URL length implications helps maintain performance and usability.
The Facet form enables you to create a facet refinement filter in the search application configuration for an AI Search application.
For details on creating or modifying a facet, see Create a facet in an AI Search application configuration.
| Field | Description |
|---|---|
| Name | Unique name for the facet. |
| Label | Label to display for the facet in the search application. |
| Facet Field | Comma-separated list of field names from AI Search indexed source tables. The facet displays search result refinement filters for values from one or more specified fields that are present in the current search result set. When you
select a refinement filter after searching, AI Search restricts the search result set to show only results that contain the specified field value. Note:
When you save or update a facet, AI Search verifies each facet field. To pass verification, the field must exist on at least one record that exists in a search source used by the search application. If a field doesn't
satisfy this condition, the system displays an error message. Supports the following formats:
Special cases include:
Facets work best when created from fields of the following types with relatively few unique values:
|
| Type | Type of the facet. The facet type determines how many field values you can select as facet refinement filters and the filter logic used by the facet.
Supports the following values:
Warning: Applying multiple filters from a Multi Select And or Multi Select Or facet makes your search query URL longer. Test your multi-select facet configurations to ensure that search query URLs with facet
filters don't exceed the maximum URL length limit for your web browser. (Different web browsers have different URL length limits.) |
| Facet Value Limit | Maximum number of distinct field values to display for the facet. |
| Order | Order of appearance for the facet in the context of the search application configuration. |
| Active | Option to activate the facet for the application. |
| Sort by | Order in which to display the facet's buckets in the search results UI.
Type: Choice list Default value: Count Supported values:
|