Facet form
Summarize
Summary of Facet form
The Facet form in ServiceNow's AI Search application configuration allows you to create facet refinement filters that help users narrow down search results based on specific field values. Facets filter search results by showing selectable values from indexed source tables, enhancing the search experience by enabling targeted result refinement.
Show less
Key Features
- Name and Label: Assign a unique name and display label for each facet to identify it within the search interface.
- Facet Field Configuration: Specify one or more fields from AI Search indexed source tables to generate refinement filters based on those fields’ values. Fields must exist in at least one record within the search source for verification.
- Field Formats Supported:
- Table-specific fields: Qualified fields in the format
tablename.fieldname. Useful for combining fields from multiple indexed tables. - Cross-table fields: Unqualified field names like
languageortags, supported only for these special fields.
- Table-specific fields: Qualified fields in the format
- Special Faceting Cases:
- Faceting on parent table fields includes child table values.
- Faceting on child table fields requires specifying the parent table name.
- Supports dot-walk fields from referenced tables using dot notation (e.g.,
kbknowledge.author.department), with a caution on performance impact for multi-level references.
- Recommended Field Types for Facets: Choice, Reference, String (including UTF-8), and True/False fields with relatively few unique values to optimize performance and usability.
- Facet Type Options:
- Single Select: Allows selecting only one field value to filter results.
- Multi Select And: Allows selecting multiple values; results must match all selected values.
- Multi Select Or: Allows selecting multiple values; results match any selected value. Previously available values remain selectable after selections.
Note: Multi-select facets can increase URL length; test to avoid exceeding browser URL limits.
- Facet Value Limit: Set the maximum number of distinct values shown in the facet filter.
- Order and Activation: Define the display order of facets in the search application and activate or deactivate facets as needed.
- Sort by: Choose to sort facet buckets by count (descending) or alphabetically by label.
Practical Use for ServiceNow Customers
By configuring facets correctly, ServiceNow customers can provide end users with dynamic, relevant filters that refine AI Search results effectively. Understanding how to specify facet fields, choose appropriate facet types, and manage facet display and sorting ensures optimized search experiences tailored to organizational data structures. Additionally, awareness of performance considerations when using dot-walk fields and managing multi-select facets helps maintain search responsiveness 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:
|