Enhancing your webshop's search functionality with dynamic suggestions can greatly improve the user experience. This guide will walk you through the steps to implement this feature, allowing users to see relevant suggestions in real-time as they type in the search bar.
Concepts and usage
The configuration you set up in the app dictates how you should request suggestions from the API.
Suggestions do not inherit configurations: if you target a suggestion for a specific category, we will not fall back on a parent category configuration. It is recommended to set up one configuration that works for your entire instance, or at least as few as possible configurations that work for most situations.
Read our product guide How do I set up Suggestions? for more details.
Implementation
To display search suggestions, send the following requests while typing:
- Regular suggestions: search phrase, category or attribute filter suggestions.
- Item suggestions: product, blog, page suggestions.
Looking for the documentation for the classic product suggestions? See Products (classic).
