Typo handling
Summarize
Summary of Typo Handling
Typo handling in AI Search automatically corrects misspelled search query terms by replacing them with auto-correction terms derived from indexed content. This feature improves search accuracy and user experience by ensuring relevant results are retrieved despite spelling errors. Customers configure typo handling through a dictionary linked to a search profile, which generates and updates auto-correction terms based on indexed data.
Show less
Key Features
- Typo Handling Dictionary: Automatically created for each search profile when search sources are linked. It cannot be deleted, unlinked, or reassigned. Configuration changes must be saved and the profile published to apply updates.
- Auto-Correction Conditions: Only terms between 3 and 255 characters appearing in indexed records are eligible for auto-correction. Certain terms are excluded, such as those with fewer than 3 characters, all uppercase letters (to preserve abbreviations), numeric digits, or explicitly excluded terms.
- Auto-Correction Behavior: Misspelled terms found in queries are replaced with closely matching dictionary terms. Users are notified of corrections and can revert to the original query if desired.
- Refresh Interval: The typo handling dictionary refreshes its list of auto-correction terms automatically every 24 hours by default, with configurable intervals.
- Language Support: Supports multiple languages including English, French, German, Spanish, and others. Auto-correction is not supported for Japanese, Korean, or Chinese variants.
- Interaction with Other Features: Auto-corrected terms do not trigger Genius Results by term triggers but can trigger result improvement rules. Auto-correction respects stop words and synonyms settings, affecting how terms are corrected or expanded.
- Disabling Typo Handling: Can be turned off by deselecting the Enable Typo Handling option in search application configuration.
Practical Application for ServiceNow Customers
By leveraging typo handling, ServiceNow customers enhance search effectiveness within their AI Search implementations, reducing user frustration caused by misspellings. Customers should manage typo handling dictionaries linked to their search profiles, update settings to refine auto-corrections, and publish profiles to deploy changes. Understanding exclusions and language dependencies ensures that auto-correction behaves appropriately for their user base. Additionally, customers can control refresh intervals for dictionary updates to balance freshness and system performance.
Managing Typo Handling Dictionaries
- Modify Settings: Adjust dictionary parameters within the search profile to tailor auto-correction behavior.
- Exclude Terms: Prevent specific terms from being auto-corrected by excluding them from the dictionary, supporting scenarios where certain spellings must remain unchanged.
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 Arabic, Brazilian Portuguese, Czech, Danish, Dutch, English, Finnish, French - Canada, French, German, Hebrew, Hungarian, Italian, Norwegian (Bokmål), Polish, Portuguese, Russian, Spanish, Swedish, and Turkish. 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. |