Indexing and searching external content in AI Search
With a subscription for the External Content for AI Search plugin, you can enable AI Search users to search content and metadata from documents in external repositories and remote tables.
The External Content for AI Search plugin enables you to index documents located outside of your ServiceNow AI Platform® instance, such as those stored in SharePoint collections, Confluence sites, and remote tables. Indexing these documents makes their content and metadata searchable in AI Search.
AI Search displays search results for indexed external documents just as it does for indexed ServiceNow AI Platform records. Users don't need to perform any special searches to match content and metadata from external documents.
Indexing doesn't duplicate external documents as records in your ServiceNow AI Platform instance. When a user selects an external document search result, they are directed to the source document in its original location.
External content indexing tools
The following diagram illustrates how AI Search provides indexing and search for external document content and metadata:
As shown in the architecture diagram, you can index content and metadata from external documents using any or all of the following tools:
| External content indexing tool | Description |
|---|---|
| Search connector applications | Search connector applications available in the ServiceNow Store provide simple tools for indexing content and metadata from documents in supported external sources. They handle some of the configuration work, such as creation of external content
schema tables, for you.
Each search connector application supports a specific external document source (or set of sources). For example, the SharePoint Online Search Connector only supports documents in SharePoint collections, while the Raytion Connector Hub for AI Search supports multiple document sources. If no search connector application is available for your external document source, you must use the Integration Hub AI Search spoke or the External Content REST API to index content and metadata for documents from that source. Search connector applications provide the most straightforward way to index document content and metadata from supported external sources. |
| Integration Hub AI Search spoke | The Integration Hub
AI Search spoke provides Workflow Studio actions that you can use to ingest external documents for indexing:
You can specify security principal access permissions for documents ingested using these actions. To learn more about access permissions and security for external document content, see External content security for AI Search. For the full list of Workflow Studio actions provided by the AI Search spoke, see AI Search spoke. The Integration Hub AI Search spoke combines flexible configuration and handling with the simple drag-and-drop Workflow Studio interface. |
| External Content REST API | The External Content REST API provides endpoints that you can use to index content and metadata from external documents:
Note:
To access the External Content REST API endpoints, you need either the ais_external_content role or the admin role. You can specify security principal access permissions for documents ingested using the ingestDocuments endpoint. To learn more about access permissions and security for external document content, see External content security for AI Search. For full descriptions of the External Content REST API endpoints, see External Content Ingestion REST API. The External Content REST API is the most complex tool for indexing content and metadata from your external documents, but it offers the most flexibility. |
External content search prerequisites
Before you can index external document content and metadata for search in AI Search, you must satisfy the following requirements. Except as noted in the table, these requirements apply regardless of which external content indexing tools you use.
| Requirement | Description |
|---|---|
| Have an active subscription for the External Content for AI Search plugin (com.glide.ais.external_content) | The External Content for AI Search plugin provides functionality for indexing content from external data sources.
For instructions on purchasing a subscription for the plugin and activating it, see Request the External Content for AI Search plugin. |
| Define an external content schema table for the external document source | An external content schema table doesn't store external document content in the database. Instead, its columns serve as a map of AI Search index fields to populate when you index content from external data sources.
For instructions on creating a new external content schema table, see Create an external content schema table. When documents from multiple external data sources share the same set of fields and have unique document identifiers, you can use a single external content schema table for all of them. To avoid data loss, the
external data sources must satisfy these conditions:
If the external data sources can't satisfy these conditions, create a separate external content schema table for each data source. Note: Search connector applications from the ServiceNow Store automatically create external content schema tables as needed. You only need to create your own external content schema tables when indexing external documents using the Integration Hub
AI Search spoke or the External Content REST API. |
| Create an indexed source with your external content schema table specified as the table to index | The indexed source sends external documents' content and metadata to the AI Search index.
For instructions on creating an indexed source, see Create an indexed source. |
| Create one or more search sources for the indexed source | Each search source specifies a subset of external documents from the indexed source whose content you want to make searchable in AI Search.
For instructions on creating search sources, see Create a search source for AI Search. |