Display Spelling Suggestions for Queries

Output Messages and QuerySuggestions such as spellchecking or synonyms.


This example shows how to display all QuerySuggestions of the type spelling. This example uses the default output options where the tag renders appropriate HTML for each:

<search:messageList response="${response}" type="spelling" title="Did you mean:" />

Other search engine metadata is sent through as messages, for example, the GSA will send keymatches, related queries, etc. through as messages:

<search:messageList response="${response}" type="keymatch" title="Sponsored Result" />

Spelling suggestions