Building Query Suggestions UI
When your user interacts with a
SearchBox, you can help them discover what they could search for by providing query suggestions.
This is a specific kind of multi-index interface: your main search interface will be using a regular index, while you will display suggestions as the user types from your Query Suggestions index.
To display the suggestions: