An AI Search indexed source tells the platform which table to read and which text and string fields to make searchable. Create one per table, make it active, shape it with attributes and field settings, limit its records with retention and filters, then run a full table index so existing records become searchable.
What an indexed source covers
An indexed source reads text and string fields from a ServiceNow AI Platform table and its configured child tables, and stores the searchable content in the AI Search index. AI Search indexes text and string fields, so a value held only in a numeric field is not searchable text. Record numbers on numbered tables are a separate case: once fuzzy numeric search is activated, an all-numeric search term can match the record’s Number field, for example a knowledge number with its prefix and leading zeros ignored.
Internal indexed sources point at a platform table. Remote tables cannot be indexed this way. External indexed sources read documents from an external repository or remote table and have their own procedure, which this page does not cover. Some platform tables are excluded from indexing, along with tables derived from them. Characters in the High Surrogate Area (U+D800 to U+DBFF) are replaced with spaces during indexing. For the wider product, see the AI Search overview.
Only one indexed source can be active for a given table. Plugins and applications can define more than one source for the same table, and duplicates are inactive by default. To activate one, first deactivate the current source.
Creating an indexed source
Creating a source requires the ais_admin role. Navigate to All > AI Search > AI Search Index > Indexed Sources, select New, complete the Indexed Source form and select Submit. The record appears with State set to New. If it holds unindexed records, an alert triangle icon and an informational message appear.
| Field | What it controls |
|---|---|
| Name | A unique name for the source |
| Source | The platform table to index |
| Active | Turns indexing on. Only active sources index content |
| Retention Policy | A time limit based on each record’s last update |
| Force Late Binding | Applies late binding security to results. Hidden in the default form layout |
| Condition | Filter conditions that narrow which records are indexed |
If the source table is Task or extends it, Retention Policy is required. For other tables it is optional, and an empty value indexes records regardless of update date and keeps them indefinitely. Creating a source does not expose it in user search, which needs search sources defined afterwards. Child tables are added from the Child Tables related list after saving.
Attributes for indexing a whole source
An indexed source attribute defines how all records from a source are indexed. A field setting defines how one column is handled. To add an attribute, open the source, select New in the Advanced Configuration related list, complete the Indexed Source Attribute form and select Submit.
| Attribute | Purpose | Values |
|---|---|---|
| index_tags | Indexes tags on records | everyone_only indexes tags shared with everyone. all_shared adds tags shared with groups and users |
| index_attachments | Switches attachment indexing on or off | true (default) or false |
| index_mms_attachments | Generates captions for visual content in attachments | true (default) or false. No effect unless index_attachments is true. Captions also need the Platform Multimodal Service plugin active. |
Tags are ignored by default. Results show them by the visibility of the result record, not the tag. Private tags are not indexed. To filter on tags, enable tag indexing first, because filter conditions operate only on indexed fields.
Attachments
By default, AI Search indexes searchable content and metadata such as file size and date for attachments. Supported formats include Word, Excel, PowerPoint, PDF with searchable text, plain text, HTML, XML and email messages. A binary file is typically up to 25 MB. Keyword indexing processes the first 1 MB of text, and attachments with 1 MB to 25 MB of text suit semantic search. Encrypted attachments yield only metadata, are recorded with the MIME type application/octet-stream, and produce no ingestion log feedback.
Multimodal captioning
Captioning describes images, tables and charts, so a caption term can match an attachment whose text lacks it. It needs the Platform Multimodal Service plugin, a vision model chosen by an AI Search administrator, and index_mms_attachments set to true. It covers knowledge records through the Knowledge Table indexed source and content from external content connectors. It has been validated for English only, and captions appear after text indexing finishes.
Field settings and referenced table fields
To configure field settings, navigate to All > AI Search Admin > AI Search Admin Home, open the Shared Configurations tab, select Indexed Sources and open the source. In the Field configurations section, select Edit, then Create. The same record is available from the Field Settings & Mapping related list.
| Configuration | Effect on the field |
|---|---|
| Exclude field from index | Its content is not searchable |
| Exclude field from search | Its content is indexed but not matched by queries |
| Include calculated field in index | Values from a calculated field are indexed |
| Include dot-walk fields in index | Values from a referenced record become available for filters and result configurations |
| Remap AI Search fields | The source field fills a named index field |
By default, a reference field’s value is indexed but not the fields of the table it points to. On the User table, the company reference is indexed, while the city or website of the linked Company record is not. Two field settings change that. dot_walk_fields makes referenced values usable in search source filters, facet filters and Entity View Action Mapping results. searchable_dot_walk_fields makes them searchable text. Enter field names comma-separated, such as name,city. Dot-separated prefixes such as company.contact.name reach further, at added indexing cost.
Retention policies and filter conditions
A retention policy limits indexing to records updated within a chosen period. A two-year policy excludes records last updated more than two years earlier. When a record passes the limit, its indexed copy is marked stale.
A filter condition keeps only records that match every condition. Excluding frequently updated open records by status reduces the index and the indexing work those records cause. A filter does not reduce the number of indexing events, however. The platform still creates an event for every change to the source table, unless the changed column has a no_text_index field setting. The filter reduces the records handled per event. A record that stops matching is marked stale.
Guardrails on Task and Alert records
The Task and Alert tables and their child tables hold very large record counts. Base system guardrails default to 10 million indexed records per table.
A guardrail limit is found in this order:
- A record for the indexed source in the Guard Rail Limit for Indexed Data Sources table.
- The glide.ais.ingestion.guard_rails_enabled_datasources system property.
- If neither defines a limit, no guardrail applies to that source.
The guardrail applies after filters and retention have narrowed the set. Within the limit, the most recently modified records are kept and older ones are discarded. A ServiceNow employee can override these limits, add limits for other tables or disable guardrails, and changes can take up to 24 hours to take effect.
Full table indexing and reindexing
After a source is defined, creates, updates and deletes on its table and configured child tables are indexed as they happen. Unchanged records are not indexed until you run a full table index, so a new source needs one.
Open the source from the Indexed Sources list and select Index All Tables. In the Generate Text Index dialog, optionally select Non blocking index, which lets record updates index during the run, then select OK. Ingestion State reads indexed when the queued task completes. For several sources, select them on the list and choose Index All Tables from the Actions on selected rows menu. Both routes apply only to active, internal sources.
Reindex after adding, changing or deleting an attribute or field setting.
Purging stale records and reviewing history
Each ingestion event is logged in the AI Search Indexed Source History table, with performance statistics and processing results. Stale records are purged automatically each day.
An admin can purge on demand from All > System Definition > Scripts – Background. To purge records from one table, enter new sn_ais.IndexEvent().purgeFilteredDocuments(‘TABLE_NAME’); and replace TABLE_NAME, for example with kb_knowledge. To purge across all tables, enter new sn_ais.IndexEvent().purgeFilteredDocuments();. The script queues an event for the index handler and returns without waiting for the purge. If the glide.script_processor.admin property has been changed from its default, use the role it names, and elevate privileges first if it is set to security_admin.
Frequently asked questions
Why does searching for a number not find the record?
Check which kind of number it is. If it is a record number on a numbered table, confirm fuzzy numeric search is activated. If the number sits in a numeric field, copy it into a text or string field on the source table so the indexed source picks it up, then run a full table index.
What happens to a record that stops matching its filter?
Its indexed copy is marked stale and is removed by the daily purge or a manual purge. The source record itself is unchanged.
Do I need to reindex after changing an attribute?
Yes. Attribute and field setting changes take effect only after a full table index.
Where do I check why a source skipped records?
Open the Indexing History related list and the event for the run. Then confirm the source is active and check retention, filters and any guardrail limit.