- Feature specific data from within your records to, for example, show promotional prices during a sales period
- Display advertisements or promotional banners.
To learn how to suppress InstantSearch’s initial search query, check out the conditional requests guide.
Handle searches without results
When a query doesn’t return results, display a message and suggest changing the query or clearing filters.Display a message
To display a fallback message when a query doesn’t return results, use theSearcher’s response event and show your “no results” UI.
Kotlin
Handle empty queries
By default, InstantSearch sends search requests even when the query is empty. To hide results until users enter a query, implement your ownSearchBoxView instead of calling onQueryChanged or onQuerySubmitted.
This hides the results without preventing search requests.
Kotlin
Handle search errors
If an error occurs, you can display a specific piece of content to help users return to the standard state. Subscribe to theSearcher’s error event to be notified of errors.
Kotlin