Typo handling
Summarize
Summary of Typo handling
AI Search in ServiceNow automatically corrects misspelled search query terms by replacing them with auto-correction terms derived from indexed content. This feature enhances search accuracy and user experience by leveraging a typo handling dictionary linked to a search profile. The dictionary is auto-generated and regularly refreshed to reflect indexed terms, improving the relevance of search results.
Show less
Key Features
- Typo Handling Dictionary: Automatically created for each search profile when search sources are linked. It derives auto-correction terms from indexed content and cannot be deleted, unlinked, or reassigned.
- Configurable Settings: Customers can modify typo handling dictionary settings via the search profile and exclude specific terms from auto-correction.
- Auto-Correction Eligibility: Terms must be between 3 and 255 characters and appear in indexed records. Terms with only uppercase letters, numeric digits, or fewer than 3 characters are excluded to support abbreviations and alphanumeric searches.
- Auto-Correction Behavior: When a misspelled term is detected, AI Search replaces it with a similar correct term from the dictionary and notifies users, allowing them to revert to the original query if desired.
- Refresh Interval: The typo handling dictionary refreshes auto-correction terms every 24 hours by default, with configurable frequency.
- Language Support: Supports multiple languages including English, French, German, Spanish, and others. Typo handling is not supported for Japanese, Korean, or Chinese variants.
Interaction with Other Search Features
- Genius Results: Auto-corrected terms do not trigger Genius Result configurations based on term triggers but are considered in Q&A Genius Results.
- Normalization: Lemma and Unicode normalization are applied to auto-corrected terms for consistency.
- Result Improvement Rules: Auto-corrected terms can activate relevant result improvement rules.
- Stop Words and Synonyms: Stop words are ignored when deriving auto-corrections, while synonyms expand without triggering auto-corrections.
Practical Considerations for ServiceNow Customers
- Enable or disable typo handling per search application by toggling the “Enable Typo Handling” option in the configuration.
- Regularly review and adjust typo handling dictionary settings within linked search profiles to ensure auto-correction terms align with organizational needs.
- Exclude specific terms from auto-correction to prevent undesired changes in search queries.
- Understand language support limitations to set realistic expectations for multilingual environments.
AI Search replaces misspelled search query terms with auto-correction terms derived from indexed content. Configure typo handling dictionary settings to control derivation of auto-correction terms.
To define auto-correction terms for a search profile, modify settings in the profile's linked typo handling dictionary. The typo handling dictionary derives a list of auto-correction terms from indexed content found in search sources linked to its search profile. Update the typo handling dictionary to save its settings. Publish the linked search profile to make auto-correction terms available for searches that use the profile.
AI Search automatically creates a typo handling dictionary for a search profile when you link search sources to that profile. You can't delete a typo handling dictionary, unlink it from its search profile, or link it to any other search profile.
To disable typo handling auto-correction for a search application, deselect the Enable Typo Handling option in the search application configuration. For more details on search application configuration settings, see Create a search application configuration for AI Search.
Conditions for auto-correction term eligibility
- The term includes at least 3 characters and no more than 255 characters.
- The term appears at least once in indexed records from the search profile's linked search sources.
Auto-correction of search query terms
When a search query includes a term not present in the typo handling dictionary, AI Search looks for terms in the dictionary with similar spelling. If it finds a good match, it automatically replaces the original search query term with the dictionary term.
For example, a search for emial, which isn't present on any indexed record, might auto-correct to the similarly spelled term email which exists on multiple indexed records and thus appears in the typo handling dictionary.
A notification message displays the auto-corrected term. Users can select the link in this message to repeat their search with the original query term.
Terms excluded from auto-correction
Auto-correction ignores search query terms that satisfy any of the following conditions:
| Condition | Description |
|---|---|
| Search query term includes only 1 or 2 characters | Auto-correction ignores search query terms below 3 characters in length.
For example, AI Search doesn't auto-correct the search query term gi. |
| Search query term includes only uppercase letters | To enable search for abbreviations, auto-correction ignores search query terms that contain only uppercase letters.
For example, AI Search doesn't auto-correct the search query term PINN, even if it auto-corrects the lowercase form pinn to pin. |
| Search query term includes one or more numeric digits | To enable search for numbers and alphanumeric identifiers, auto-correction ignores search query terms that include numeric digits.
For example, AI Search doesn't auto-correct the search query term 402K. |
| Search query term excluded from typo handling dictionary | Auto-correction ignores search query terms excluded from the typo handling dictionary.
For instructions on excluding terms from a typo handling dictionary, see Exclude a term from a typo handling dictionary. |
Automatic refresh of auto-correction term lists
Each typo handling dictionary automatically refreshes its list of auto-correction terms after a set interval. The refresh operation has the same effect as republishing the dictionary's linked search profile.
By default, typo handling dictionaries refresh every 24 hours. If you want the term list refreshed less frequently, you can increase this interval in the dictionary settings.
Language dependence
Typo handling is language-dependent. AI Search derives a separate list of auto-correction terms for each supported language found in the search sources' indexed content.
AI Search supports derivation of auto-correction terms for Brazilian Portuguese, Dutch, English, Finnish, French - Canada, French, German, Italian, Polish, Portuguese, Spanish, and Swedish. Typo handling auto-correction term derivation isn't supported for Japanese, Korean, Simplified Chinese, or Traditional Chinese.
Interaction with other search features
The following table describes interactions between typo handling and other search features.
| Feature | Interaction with typo handling |
|---|---|
| Genius Results | Auto-corrected search query terms can't trigger Genius Result configurations with Term trigger conditions.
When computing Q&A Genius Results for a search query, AI Search corrects terms in the query. |
| Lemma and Unicode normalization | AI Search performs lemma and Unicode normalization on auto-corrected search query terms. |
| Result improvement rules | An auto-corrected search query term can trigger a result improvement rule if it matches the rule's Query trigger. |
| Stop words |
If a misspelled search query term is defined as a stop word, AI Search auto-corrects that term normally instead of removing it. AI Search ignores terms defined as stop words when determining an auto-correction for a misspelled search query term. For example, if you define email as a stop word, AI Search doesn't offer email as an auto-correction when you search for emial. |
| Synonyms | If a misspelled search query term is defined as a synonym, AI Search expands that synonym without auto-correcting it. |