On this page
Query suggestions#
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.
Usage#
To display the suggestions:
- Create a Query Suggestions index from your main index.
- Implement a Multi-Index search experience using both indices.
- When clicking on a suggestion, set the query to the chosen suggestion.