Facet form
Summarize
Summary of Facet form
The Facet form in ServiceNow's AI Search application configuration enables you to create facet refinement filters. These facets help users narrow down search results by selecting specific field values from indexed source tables. Facets improve search relevance and user experience by filtering results dynamically based on selected criteria.
Show less
Key Features
- Name and Label: Define a unique facet name and a user-friendly label displayed in the search UI.
- Facet Field: Specify one or more fields from AI Search indexed source tables to create refinement filters. Supported formats include:
- Table-specific qualified fields (e.g., kbknowledge.author) from indexed source tables.
- Cross-table fields (only language and tags are supported).
Important Notes: All fields in a facet must be of the same type. The system verifies field existence in the indexed source and shows errors if invalid.
- Special Cases:
- Faceting on parent table fields includes values from child tables.
- Faceting on child table fields requires specifying the parent table name as qualifier.
- Dot-walk fields from referenced tables can be used with appropriate qualifiers (e.g., kbknowledge.author.department), but multi-level references may impact indexing performance.
- Supported Field Types: Facets work best with fields having relatively few unique values such as Choice, Reference, String, True/False.
- Facet Type: Determines selection behavior and filter logic:
- Single Select: Only one field value can be selected; filters results accordingly.
- 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 value. Initially only values present in the current result set are shown, but previously available values remain selectable after the first selection.
Warning: Using multiple filters in Multi Select facets can lengthen the search query URL; test to avoid exceeding browser URL length limits.
- Facet Value Limit: Set the maximum number of distinct field values shown in the facet.
- Order and Sort by: Control the facet’s display order and sorting of facet buckets by count (most frequent first) or alphabetical label order.
- Active: Option to enable or disable the facet in the search application.
Practical Implications for ServiceNow Customers
By configuring facets using this form, customers can enhance their AI Search applications with dynamic refinement filters that improve search accuracy and user navigation through large datasets. Correctly specifying indexed source fields and understanding facet types ensures facets behave as expected and provide meaningful filtering options. Awareness of URL length limitations helps maintain search performance and usability when applying multiple filters.
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:
|