A search profile holds the settings for one AI Search experience, including which indexed content it reaches and how each query is reshaped before matching. Synonym dictionaries widen a query with equivalent terms, and stop word dictionaries strip filler terms out of it. Both reach live searches once the dictionary and the profile that links it are published.
What a search profile contains
A search profile is the container for one search experience. Define a separate profile for each distinct experience you offer in a ServiceNow AI Platform application, since the profile decides what that experience can find. The AI Search overview covers where profiles fit in the wider application. This page stays with the settings inside one. For how the content behind those sources is indexed, see AI Search Indexed Sources: Setup, Attributes and Reindexing.
| Setting | What it controls |
|---|---|
| Search sources | The indexed content the profile can reach |
| Synonyms | Equivalent terms added to a query before matching |
| Stop words | Common terms removed from a query before matching |
| Typo handling | Auto-correction of misspelled query terms |
| Genius Results | Answer cards shown for a matching query |
| Result improvement rules | Boosting, blocking or promoting records for specific queries |
A search application configuration picks the profile it uses and controls how results appear. Several applications can share one profile.
Profile states and publishing
A profile is New until it is first published, then Draft while it holds unpublished changes, and Published once its changes are live. The Search Profiles list flags New profiles with an alert triangle icon. A new profile also arrives with sample synonym and stop word dictionaries and a default typo handling dictionary. Review those samples against your own vocabulary before you publish.
Publishing happens at two levels. Publishing a dictionary pushes its settings and active terms to each profile that links it. Publishing a profile pushes its linked dictionaries, typo settings, blocked terms and result improvement rules to the application configurations that reference it.
Saving a dictionary without publishing keeps your edits unpublished, so linked profiles keep the old terms until you select Publish. Linking or unlinking a dictionary changes the profile, so the profile needs publishing for that link to apply.
How synonyms widen a query
A synonym groups two or more equivalent terms. The Term field holds one label, and the Payload field holds the remaining equivalents as a JSON array. Expansion runs in both directions, so a query matching a term in either field expands to the rest of the group. A synonym grouping “car loan”, “auto loan” and “vehicle finance” lets a query for “auto loan” return records containing one of the three phrases.
A synonym expands a query when it is active, its dictionary is published, its terms fit the length limit, and its dictionary language matches the query. If the profile has no published dictionary in the query’s language, the English dictionary is the fallback.
Multi-word synonyms need matching word order. With “time off request” defined as a synonym of “leave form”, the query “time off request” expands, but “request time off” does not. Once a query matches a multi-word synonym, the search treats those words as a quoted phrase.
How stop words narrow a query
A stop word is removed from the query before matching. Stop words are the frequent function words, such as articles and prepositions, that show up across many indexed records, so matching them weakens precision. If “my” is a stop word, the query “set up my new phone” is matched as “set up new phone”.
The eligibility conditions match those for synonyms. Multi-word stop words are removed when the query has the same words in the same order and proximity. With “in the office” as a stop word, “remote work in the office” becomes “remote work”, while “office in the” is left intact.
Three edge cases matter. A misspelled word that is also a stop word gets auto-corrected rather than removed. Stop words are excluded from auto-correction suggestions, so a stop word is not offered as the fix for a misspelling. Wildcard expansion with the percent sign or asterisk skips stop words.
Matching settings and term length
Case sensitivity and punctuation sensitivity are both off by default and are set per dictionary. With case sensitivity on, a synonym for an all-caps term expands a query that uses those capitals, and a lowercase search for the same letters gets no expansion. With punctuation sensitivity on, a stop word defined with a hyphen is removed from a query that keeps the hyphen, while the same words typed with a space stay in the query. Switch these on when the difference changes meaning, such as product codes or abbreviations that collide with ordinary words.
By default, terms longer than 256 characters are ignored. The limit is controlled by the query.maxDictionaryTermLength system property. Longer terms increase memory use, and queries can fail with out-of-memory errors, so raise the limit for a term that genuinely needs it. For the suggestion and autocomplete side of query handling, see AI Search Suggestions: Tables, Auto-Complete Types and Exclusions.
Language rules for dictionaries
Each dictionary has one language, applied to each term in it. A profile can link one stop word dictionary per language, so one English and one French dictionary can coexist, but two English ones cannot. Synonym dictionaries follow the same language matching.
How synonyms, stop words and other features interact
Synonyms and stop words touch other parts of search, as the table shows.
| Feature | Effect on synonyms | Effect on stop words |
|---|---|---|
| Genius Results | Expansion terms cannot trigger a Term-trigger configuration. Q&A answers expand synonyms. | A Term-trigger match is checked before removal. Q&A answers ignore stop words. |
| Result improvement rules | An expansion term can activate a Query-trigger rule by default. Clearing Expand Synonyms For Query Conditions stops this. | A Query-trigger match is checked before removal. |
| Typo handling | A misspelled synonym is expanded without being corrected first. | A misspelled stop word is corrected instead of removed. |
| Lemma and Unicode normalization | A query term that is a synonym is not normalized. | A stop word is removed without normalization. |
For how answer cards are selected, see the AI Search Genius Results guide.
Stop words can also protect a synonym. The expansion check keeps stop words in place, so a synonym whose phrase contains one still applies. A query for the short form still returns records that contain the full phrase.
Setting up a profile step by step
Profile and dictionary work requires the ais_admin role. For Next Experience global search setup and migration, see AI Search for Next Experience: Setup and Zing Migration.
- Go to All > AI Search > Search Experience > Search Profiles, select New, enter a label, and submit.
- Link one or more search sources so the profile has content to search.
- In the Synonyms and Stop Words related lists, select Create and Link for a new dictionary, or Link Existing to reuse one.
- Add each term through the dictionary’s Dictionary Terms related list.
- Select Publish on the dictionary to refresh linked profiles, or leave it unpublished until you are ready.
- Publish the profile so its links and rules take effect.
- Run a test search using one of your synonym terms and one of your stop words, and compare the results with what you expected.
Teams that want outside help with a larger dictionary set can look at the ServiceNow consulting services.
Maintaining profiles and dictionaries
Cloning a profile copies its search sources, dictionaries, Genius Result configurations and result improvement rules. It does not copy typo handling settings or blocked terms, so set those again on the clone. Cloning a dictionary copies its settings and terms, so give the copy a clear label.
Unlinking keeps the dictionary and removes it from one profile. Deleting removes a dictionary that no profile links. If a profile still links it, the delete fails and the error names those profiles. Deleting a search source does not unlink it from profiles, so remove it from each profile by hand.
Result improvement rules are tied to the profile that holds them, so a profile mirrors another profile’s rules instead of copying them. Mirroring requires ServiceNow Otto for AI Search to be installed. Link source profiles in the Mirrored Result Improvement Rules related list on the target. When a source is published with changed rules, published targets are republished automatically, and unpublished targets show a reminder to publish.
Tracking traffic by profile
The AI Search Profile dashboard sits under AI Search Analytics, in Search Profile Analytics. It summarizes indexed record counts and query traffic for a chosen profile over a chosen time frame, with a bar chart of queries by application and a line chart of queries by month, both drawn from sys_search_event. Viewing or editing it requires the ais_admin role. Some portals need an extra role before their search profiles appear. For example, the ESC Portal Default Search Profile shows in the list only to people with the Employee Center administrator role, so a missing profile can be a permissions question.
Frequently asked questions
Why does a new synonym not change results yet?
The dictionary and the profile both need publishing. Saving without publishing leaves live terms unchanged, so select Publish on the dictionary and publish the profile if its links changed. The synonym also needs to be active, with a dictionary language that matches the query.
Can one dictionary serve several profiles?
Yes. A single synonym or stop word dictionary can link to several search profiles, so one term list feeds each linked experience. Term changes reach each linked profile once the dictionary is published.
Can a stop word remove a term from a synonym?
No. A stop word inside a synonym definition is kept during the expansion check, so the synonym still applies. Stop word removal affects the query text, and the synonym check accounts for it.
Does cloning a profile copy its typo settings?
No. Cloning copies sources, dictionaries, Genius Result configurations and result improvement rules, but not typo handling settings or blocked terms. Configure typo handling on the clone yourself.
Why can a synonym dictionary not be deleted?
A profile still links it. The delete error lists those profiles, so unlink the dictionary from each one, publish them, and then delete.