Contextual search properties
Summarize
Summary of Contextual Search Properties
Contextual search properties enable ServiceNow customers to customize the search functionality within their platform. These properties allow control over the fields used for searches and the display of search results, enhancing the overall search experience for users.
Show less
Key Features
- Maximum Search Results Limit: Default limit for search results is set to 10.
- Minimum Search Length: Search triggers after 3 characters are entered.
- Search Wait Time: A delay of 1,000 milliseconds before initiating a search.
- Result Threshold Warning: Logs warnings if search results exceed 10,000, assisting in performance monitoring.
- Default Search Field: Automatically uses 'shortdescription' for new table configurations.
- Widget Collapsing: Options to collapse the search results widget for new and existing records to save space.
- Auto-Expand Search Results: Automatically expands search results when the search field is updated.
- Metadata Display: Additional metadata can be displayed for each search result when enabled.
- Relative Links: Option to enforce relative links in the contextual search modal window.
Key Outcomes
By configuring these contextual search properties, ServiceNow customers can optimize search performance, enhance user experience, and ensure relevant search results are efficiently displayed. These adjustments lead to improved productivity and satisfaction within the platform.
Contextual search properties are used to control the fields that you can search from and the number of results displayed per page.
The contextual search properties are available at .
| Property label | Description |
|---|---|
| Default value for maximum number of search results returned for table and record producer configurations [com.snc.contextual_search.result.default.limit] |
Default value for the maximum number of search results returned when you create a table or record producer configuration. By default, the value is 10. |
| Number of characters that a configured field needs before triggering a search [com.snc.contextual_search.min_length] |
Number of characters that contextual search requires before triggering a search based on the text entered in the search field. By default, the value is set to 3 characters. This property also applies to the Agent Assist search. |
| Number of milliseconds that a configured field will wait before triggering a search [com.snc.contextual_search.wait_time] |
Number of milliseconds that contextual search waits before triggering a search based on the text entered in the search field. By default, the value is set to 1,000 milliseconds (one second). |
| Records returned above this threshold will log warnings [com.snc.contextual_search.result.threshold] |
Triggers a warning message within the system log whenever more than this number of results are returned in a search. This logging helps if you’re experiencing performance issues because of large searches. By default, the value is set to 10,000 results. |
| When a Form configuration is created a search field with a name matching this property will be automatically created [com.snc.contextual_search.widget.form.default_field] |
The default field that is used for searching when you create a table configuration. By default, the value is set to short_description. |
| Collapse the search results widget when creating a new record in a form [com.snc.contextual_search.widget.form.open_collapsed_new_records] |
When the value is set to true and you create a record, the search results widget is collapsed to save space. By default, the value is set to false. |
| Collapse the search results widget when opening an existing record in a form [com.snc.contextual_search.widget.form.open_collapsed_existing_records] |
When the value is set to true and you open an existing record, the search results widget is collapsed to save space. By default, the value is set to true. Note: The property applies only to existing records and
not to new records. |
| Auto expand the search results widget when search field updates in a form [com.snc.contextual_search.widget.form.expand_on_search_field_update] |
When the value is set to true and you update the search field in a form, the search results widget automatically expands and runs the search. By default, the value is set to true. |
| Show meta data on form contextual search results [com.snc.contextual_search.widget.form.show_meta_data] |
When the value is set to true, each search result includes additional metadata below each result record. By default, the property is set to true.
|
| Always force a relative link in the cxs_new_window UI Page [com.snc.contextual_search.cxs_new_window.force_relative_link] |
The property ensures that only relative links open from the contextual search modal window. By default, the property is set to true. When the value is set to true, a link opened from the contextual search modal window is forced to be a relative link. When the value is set to false, a relative or external link can be opened from the contextual search modal window. To review this property in the System Properties [sys_properties] table, enter sys_properties.list in the navigation filter. Note: The contextual search
window is displayed in the core UI. |