Skip to main content
This guide describes what to do when there are no results, when there’s no query, or when there are errors. If results haven’t loaded, the search may still be in progress or the device may be offline. For more information, see No hits or is the search still in progress? If you want to feature content in your search results based on a set of conditions, you can use Algolia Rules to:
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 the Searcher’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 own SearchBoxView 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 the Searcher’s error event to be notified of errors.
Kotlin
Last modified on October 7, 2026