Suggest Spelling Corrections

Show spelling suggestions provided by the search platform. Out of the box, as with many Appkit tags, you get sensible defaults that can also be customised as needed.

Default Usage

The Spelling Suggestions Widget is triggered when the underlying search platform detects a misspelling. In its default form, the widget can be added by simply passing in the response:

<widget:spellingSuggestions  query="${query}" response="${response}" />


Spelling suggestions

Custom Usage

Using manually-specified text

The widget also give you complete control of the text before, after, and in between both the originally queried and the modified query:

    response="${response}" query="${query}"
    originalLabel="No results found for "
    originalSuffix=". "
    correctedLabel="Showing results for "
    correctedSuffix="." />