Search sources in AI Search
Summarize
Summary of Search Sources in AI Search
Search sources in AI Search allow you to define and manage searchable content for enhanced search experiences. By referencing an indexed source and applying optional filter conditions, you can control the content available to users during search queries.
Show less
Key Features
- Indexed Source Reference: A search source references an indexed source, enabling search queries to access all records from that source by default.
- Filter Conditions: You can apply optional filter conditions to limit search results. Only records meeting all specified conditions will be returned.
- Multiple Search Sources: You can create multiple search sources that reference the same indexed source but with different filter conditions.
- Filter Condition Limitations: Filters can only operate on indexed source record fields. Referenced record fields must be indexed to be used in filter conditions.
- Linking to Search Profiles: To make your search sources available to users, link them to one or more search profiles, allowing for organized access to content.
- Viewing Search Sources: Easily view and edit search sources through various application modules within ServiceNow.
Key Outcomes
By effectively configuring search sources, ServiceNow customers can enhance their search functionality, ensuring that users receive relevant results tailored to their needs. This capability improves user experience and facilitates easier access to crucial information within the platform.
Define search sources to make your searchable content available in search experiences. Choose an indexed source and configure optional filter conditions to limit the content that users can search.
Search source structure
- A reference to an indexed source. By default, search queries using the search source can return all records from the referenced indexed source. For more information on indexed sources, see Indexed sources in AI Search.
- An optional set of filter conditions applied to the indexed source's records. Indexed source records must pass all of these filter conditions to be returned as search results for queries using the search source.
You can define multiple search sources that reference the same indexed source, specifying distinct filter conditions for each.
Filter conditions
You can use static and dynamic filter conditions to filter search source records. As an example, you could apply a dynamic [Assigned to] [is (dynamic)] [Me] user filter to make your search source only return results corresponding to indexed source table records assigned to the search user.
- Filters that reference fields from child tables of the indexed source table. As an example, if you create an indexed source for the Task [task] table, search sources for that indexed source can't use filters to reference fields from the Incident [incident] table because the Incident table is a child of the Task table.
- Dynamic filters with scripts that use the current keyword or global variable
- Dynamic filters with scripts that reference any global business rules
- Dynamic filters with scripts that use script includes
For more information on filter conditions, see Filters. To learn about relationships between parent and child tables, see Table extension and classes. For details on dynamic filter options and their associated scripts, see Create a dynamic filter option.
Linking search sources to search profiles
To make your search source's content available to users, link it to one or more search profiles. You can link multiple search sources to a single search profile.
For more information, see Link a search source to a search profile.
Viewing search sources
- To view all defined search sources, navigate to .
- To view search sources that reference a particular indexed source, navigate to . Open the indexed source and select its Search Source Mappings related list.
- To view search sources linked to a particular search profile, navigate to . Open the search profile and select its Search Sources related list.