The spelling will be accepted as correct and will not be flagged in future spell check processes.
Ignore All prompts the spell checker to ignore all occurrences of the spelling discrepancy for the duration of the current spell checking process.Īdd to Dictionary adds the word as spelled to the dictionary. If the same spelling is encountered again, it will be flagged. Ignore Once prompts the spell checker to ignore the spelling discrepancy one time for the current selection. If the word is not misspelled, there are three options to choose from: What you choose depends on whether or not the word is actually misspelled.
Go to Edit > Check Spelling > Check Spelling in Markups and Form Fieldsĭuring the spell check process, each misspelled word is shown in context with a series of options for correcting or ignoring the error.Ĭhoose how to handle each identified misspelling.To run spell check on markups and form fields, do one of the following: Right-click the text to reveal a menu of suggested replacement words along with a command to add the word to the current dictionary. Note that BeginOffset and EndOffset are based on the length of the corrected terms, not the original terms.When editing a text-based markup or form field, unrecognized words are highlighted with squiggly underlines using the color set in Spelling Preferences. To achieve this, we can add HTML italics opening tags at the BeginOffset of each Correction and HTML italics closing tags at the EndOffset of each Correction in the Corrections list. Corrections maps to a list of Correction objects, which contains the beginning and ending offset of the correction, as well as the original term from the query and the spelling suggestion for that term.įor our example, we want to show the suggested query text with the newly suggested terms italicized, similar to what is done on the Amazon Kendra console.
SuggestedQueryText maps to a string containing the updated query with the suggested spelling corrections.
'SuggestedQueryText': 'kendra free tier hours',Įach SpellCorrectedQuery has two keys: SuggestedQueryText and Corrections. We use the AWS CLI to query Amazon Kendra as usual, with only one small change: we include the -spell-correction-configuration IncludeQuerySpellCheckSuggestions=true argument: Let’s look at how AWS CLI users can opt in to Amazon Kendra Spell Checker to receive spelling suggestions for misspelled query terms. Additionally, we go over an example of how to process the Spell Checker response.
Search applications powered by Amazon Kendra can quickly and easily enable Spell Checker through the AWS CLI or AWS SDK, which we walk through in this section. Misspelled terms in the query are substituted with suggested terms in the “Did you mean” section of the search console.Ĭhoosing the suggested query submits a new query with the corrected spelling.Īs you can see, the query results provided through the suggested query are significantly more relevant, thanks to Spell Checker! Use Amazon Kendra Spell Checker in search applications On the Amazon Kendra search console, simply submit a query as you usually would. Make sure that the selected index has ingested documents in this post, we use the sample AWS documentation found in the Data sources section of the navigation pane. On the Amazon Kendra console, choose your desired index, then choose Search indexed content in the navigation pane. You can automatically receive spelling suggestions for your misspelled Amazon Kendra queries when querying through the console. Use Amazon Kendra Spell Checker on the console In this post, we explore how to use Amazon Kendra Spell Checker on the AWS Management Console, as well as how to enable Spell Checker in an Amazon Kendra-powered search application through the AWS Command Line Interface (AWS CLI) and AWS SDK. Spell Checker helps reduce the frequency of queries returning irrelevant results by providing spelling suggestions for unrecognized terms. You can receive spelling suggestions for misspelled terms in your queries by utilizing the Amazon Kendra Spell Checker. Amazon Kendra is an intelligent search service powered by machine learning.