OBLYTECH Logo
OBLYTECH Logo

ServiceNow AI Search Overview: Indexing and Search Profiles

AI Search is the search application on the ServiceNow AI Platform that serves Service Portal, Now Mobile and Virtual Agent. It copies text from chosen tables and external content into a search index. Search sources and search profiles then decide which part of that index each search experience can reach, and Genius Results and retrieval features shape the answers.

What the AI Search application covers

AI Search covers three kinds of work: configuring searchable content, connecting search to other AI Platform applications, and administering how search behaves. The Australia release includes an AI Search Admin console for configuring, testing and activating search across different application types. External Content Connectors extend the same search to supported outside systems. AI Search is not available on personal developer instances, so plan build and test work on a full instance.

How indexed sources copy table content into the index

An indexed source is the link between content and the search index. An internal indexed source names one platform table and reads text and string fields from its records and from any child tables set up for indexing. An external indexed source points to an external content schema table and reads text and string content from documents in an outside repository or a remote table. Remote tables need the external route. The base system ships with preconfigured sources for Knowledge articles, Catalog Items and users, and the knowledge management guides cover the Knowledge side.

Certain tables sit outside indexing altogether, and that exclusion extends to anything built on them. Index-time handling also turns characters in the high surrogate range, U+D800 to U+DBFF, into spaces.

A plugin or application can attach a duplicate source to a table that already has one. The duplicate starts out inactive. A table can have one active source at a time, so swapping sources means turning the current one off first.

Once a source is live, edits to its records and to records on child tables reach the index on their own. Records that have not changed since then enter the index through a full table index, so run one on each new source. A reindex is also needed after an attribute or field setting changes, and when values from a referenced table should appear. The User table, for example, stores a company reference to the Company table. Indexing the city on Company means the User table must be reindexed before those city values show up.

Reference fields keep just the reference value by default. A dot_walk_fields setting exposes referenced fields to filters, facets and result configuration. A searchable_dot_walk_fields setting makes those values searchable text, and it refreshes on reindex. For the term itself, see dot-walking explained.

Attachments are indexed by default for Word, Excel, PowerPoint, PDF with searchable text, HTML, XML, plain text, email and ASP.NET files. Binary files up to 25 MB are accepted, but keyword indexing reads the first 1 MB of text. Numbers need a separate step. Pre-configured sources index text and string fields, so a numeric value can drive facets and filters but cannot be found by typing it. Copy the number into a text field to make it searchable.

Keeping the index lean with retention and filters

A retention policy limits indexing to records updated within a chosen window. Under a two-year window, a record last updated more than two years ago is marked stale in the index. A daily job purges stale records, and an admin can run the purge by hand from the Scripts – Background module. Retention is mandatory for sources built on the Task table or its extensions, because those tables can add very large numbers of records.

A filter condition limits indexing to records that meet all of its conditions. One workable example is excluding open records by status. A filter leaves the count of indexing events untouched, since each change still triggers one unless its column is set with no_text_index. The filter changes how many records each event carries. Filters act on indexed fields, so tags and referenced-record fields must be switched on for the source before a filter can use them.

Search speed depends on how much work a query asks the index to do. A larger index, more separate sources and more indexed fields each add to that work. Frequent updates also compete with queries for the same compute, so sources with often-changing fields can slow response times.

Attributes apply to a whole source, while field settings apply to one field. Mapping a field to an index field uses the map_to setting, and no_text_index stops a field’s text from being indexed. Retention is based on how long ago each record was last updated, so review any no_text_index setting on sys_updated_on before applying one on the Task table or on any table with a retention policy. Attribute changes wait for a reindex before they take effect.

How search sources and profiles decide what people find

A search source pairs a reference to an indexed source with optional filter conditions, and several search sources can share one indexed source with different filters. Search sources can also use dynamic filters. In Customer Service Management Recommended Actions, a scripted AisDynamicFilter extension point applies filter conditions based on the record the user is working on. Dynamic filtering is switched on per search source with the Has Dynamic Filters check box in the search profile. For how extension points attach to apps, see extension points.

Connecting a search source to a profile is what opens its filtered records to searches run through that profile. Deleting a search source does not unlink it, so an administrator must remove it from each profile by hand.

A search profile holds the settings for one search experience. Those settings include linked sources, synonyms, stop words, typo handling, Genius Results and result improvement rules. Synonyms treat different terms as equivalent. Stop words strip out terms that add noise. Typo handling replaces misspelled query terms with corrections drawn from indexed content. Improvement rules use triggers to boost, block or promote records for particular queries, and they can boost by searcher context such as country, operating system or device type.

A profile in the New state shows an alert until it is published, and its State changes to Published once the publish completes. Publishing pushes linked dictionaries, typo settings and improvement rules into each search application configuration that uses the profile.

How Genius Results and RAG return answers

A Genius Result configuration checks for results with very high relevancy when its trigger fires, and it builds cards beside the normal result list when that check succeeds. A small share of queries typically produce a card. There are three triggers. Always fires on all queries. NLU fires when a query matches an intent in a chosen NLU model. Term fires when the whole query is one specified term or phrase. A Search answer shows up to three cards from a query defined in a server-side script. A Script answer shows a single card of key-value pairs built by a script. The Genius Results Limit on a search application caps the cards shown. For the feature on its own, see AI Search Genius Results.

Several limits apply. In the base system, Genius Results support English queries. The People configuration draws its vocabulary from the Catalog Item, Department, Location and User tables, and if any of those tables holds more than 100,000 records, training fails for the NLU model and the People configuration will not operate correctly, so check those record counts before activating it. A stop word is eligible for removal from a query when it is active, its dictionary is published, and it is no longer than the dictionary term-length limit. Search in the Customer Service Management Configurable Workspace also runs on AI Search, which replaced the Zing search application there from the Utah release. For the search engine it replaced, see Zing search. The CSM Configurable Workspace store app adds AI Search indexed sources for accounts, cases, contacts, orders and catalog items.

Retrieval-augmented generation runs as a short pipeline. Query rewrite shortens long or complicated queries so they fit the embedding model’s token limit. The retriever uses the rewritten query to fetch matching records, and the re-ranker, which uses a large language model, reorders them. The re-ranker output is the final response. Semantic search matches on meaning through embedding models. The default is the ServiceNow Embedding (E5) model, and Azure OpenAI and Gemini text embedding models are supported, along with a custom hosted model. A semantic index configuration on each source names its embedding models, its chunking strategy and its semantic index fields in a set order. Chunking breaks text into smaller pieces, which reduces search load and keeps matches in context. For preparing content for retrieval, see AI knowledge retrieval readiness.

Roles needed to configure and run AI Search

Role Purpose
ais_admin Configures indexed sources, search sources, search profiles, dictionaries, Genius Result configurations and improvement rules
ais_high_security_admin Elevated role for high security settings, such as bypassing search filters in the Search Preview UI. Used by elevation
ais_external_content Feeds external documents and imports user mappings for non-interactive and integration users. Admin users do not need it
search_application_admin Manages search application configurations for Zing and AI Search, and includes the ais_admin and personalize_dictionary roles

Assigning these roles requires the admin role, which is also needed for the manual purge script.

Frequently asked questions

Why don’t numbers on my records show up in search results?

Pre-configured indexed sources index text and string fields. Numeric fields can still drive facets and filters. Copy the value into a text or string field, and the index can match on it.

What happens to records that fall outside a retention window?

Their indexed copies are marked stale. A daily job removes stale records from the index, and an administrator can run the purge sooner from a background script.

Do filter conditions reduce how often indexing runs?

No. A filter lowers how many records each indexing event writes. The platform still creates an event for each change to the table unless the changed column has a no_text_index setting.

Does Genius Results work with queries in other languages?

Not in the base system, which supports English queries for Genius Results.

More ServiceNow guides on this topic