Facet form
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:
Enter a comma-separated list of qualified For example, enter Note: All fields specified in a facet field list must be of the same type. The
Enter an unqualified For example, enter Note: This format only supports the Special cases include:
If you specify an indexed source parent table field as a facet field, AI Search includes values from the same field on child tables from the indexed source. As an example, suppose you create an indexed source for a custom Parent [u_parent] table, which is extended by a custom Child [u_child] table. If you specify
You can specify a field that's unique to an indexed source child table as a facet. Continuing the previous example, if your Child [u_child] table includes an Editor field that's not present on the Parent [u_parent] table, you can specify Note: Be sure to specify the parent table name as the qualifier, not the child table name.
If your indexed source includes a dot_walk_fields field setting for a dot-walk referenced table field, you can specify that field in a facet field entry using dot-separated reference field qualifiers. Add these qualifiers between the indexed source table name and the referenced table field name. For example, to facet knowledge article search results based on the Department field values for their authors, you can define Note: Each dot-walk reference level imposes a performance impact on indexing. Avoid using multi-level references unless necessary. To learn about dot_walk_fields field settings, see Enable indexing of referenced table fields for an AI Search indexed source. 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:
In a Single Select facet, you can only select a single field value as a facet refinement filter. When you select a field value from a Single Select, AI Search filters the search results list, displaying only results that contain your chosen field value. A Single Select facet only allows you to select field values that are found in the current result set.
In a Multi Select And facet, you can select multiple field values as facet refinement filters. When you select a field value from a Multi Select And facet, AI Search filters the search results list, displaying only results that contain all of the field values you've selected from the facet. A Multi Select And facet only allows you to select field values that are found in the current result set.
In a Multi Select Or facet, you can select multiple field values as facet refinement filters. When you select a field value from a Multi Select Or facet, AI Search filters the search results list, displaying only results that contain any of the field values you've selected from the facet. A Multi Select Or facet initially only allows you to select field values that are found in the current result set. All field values that are available when you make your first selection remain available for selection. As an example, suppose you have a Multi Select Or facet for a custom Color field with blue, green, and red field values. If your search returns only green and red results, the Color facet only displays green and red field values. When you select the red field value, AI Search keeps the green field value available for selection because it was available before you made any Color selection. 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:
|
Parent Topic:AI Search reference