Sort Option form
Summarize
Summary of Sort Option form
The Sort Option form is used within AI Search application configurations to create or modify search result sort options. These options define how search results are ordered based on specified fields, enhancing the search experience by allowing users to sort results meaningfully.
Show less
Key Features
- Label: Defines the display name of the sort option in the search application's sort menu, making it user-friendly.
- Sort Field: Specifies the field used to sort results. It supports date, number, or string fields with two main formats:
- Qualified field format: Uses [indexedsourcetablename].[fieldname] to sort by fields from a specific source table, e.g., kbknowledge.author.
- Unqualified field format: Uses common AI Search index fields like title or language to sort results.
Important considerations include:
- The linked search profile must include a search source derived from the specified indexed source table to avoid errors.
- Sorting on parent table fields includes child table values, allowing comprehensive sorting across table hierarchies.
- Sorting on child table fields requires specifying the parent table name as qualifier, even if the field exists only in the child table.
- Application: Automatically sets the application scope for the sort option, ensuring correct context.
- Ascending: Option to display results in ascending (a to z) or descending (z to a) order.
- Active: Toggles whether the sort option is enabled for use in the search application.
Practical Use for ServiceNow Customers
By configuring sort options correctly using this form, you can tailor search result ordering to match user needs, such as sorting by author, date, or title. This improves search relevance and user experience within your AI Search application. Ensure that the indexed source tables are properly linked in your search profile and that you use supported field types to avoid errors during configuration.
The Sort Option form contains information about search result sort options defined in your AI Search application configurations. Use this form when creating or modifying a search result sort option for a search application configuration.
For details on creating or editing search result sort options, see Search result sort options in AI Search application configurations.
| Field | Description |
|---|---|
| Label | Label displayed for the search result sort option in the search application's sort menu. |
| Sort Field | Name of a source table field or common index field that the sort option uses to sort search results.
The sort field can be a date, number, or string field.
Note: If you specify a sort field of an unsupported type, an error message appears when you attempt to save the sort option. Supports the following formats:
The [indexed_source_table_name] qualifier must be the name of a table specified in an indexed source. Don't specify indexed source child table names for this qualifier. Special cases include:
|
| Application | Application scope for the search result sort option. This field is automatically set. |
| Ascending | Option to make the search result sort option display results in ascending order (a to z). Clear this option to make the search result sort option display results in descending order (z to a). |
| Active | Option to activate the search result sort option for use in the search application. |