THE USEFUL IDEA

Show what was searched, which conditions remain active and what action can change the result. A failed search does not establish that the product does not exist.

Define the response the interface received

A fictional shop's available catalog contains a blue 300 ml mug and a white 500 ml mug. Searching “mug” with blue and 500 ml filters completes successfully and returns zero matches. Neither listing satisfies all three conditions together.

That differs from a request that could not complete because of a service failure. Algolia's DocSearch documents separate error and no-results screens; we use this as a reference for the distinction, without claiming that the shop uses that product or its particular version.

Keep the query and filters visible

The example's empty state could say: “No results for mug with blue and 500 ml.” Keep “mug” in an editable field and show both active filters. USWDS recommends retaining the original search terms in the field when presenting results.

Do not replace that explanation with “we do not sell mugs” or “sold out.” The queried collection contains mugs, and the zero concerns a combination. We also do not know the physical stock outside the available catalog. Describe the known response without turning it into a broader claim about the business.

Offer a specific modification

Offer “Remove capacity filter” while retaining the query and color. Under the exercise data, that action reveals the blue 300 ml mug, whose capacity must remain visible. Editing the query or removing the color are other options if the interface actually supports them.

Algolia notes that a no-results state can offer actions to change the query or filters. Our proposal removes one condition at a time to make the change understandable. If recommendations fall outside the original conditions, label them as alternatives: do not present the 300 ml mug as a 500 ml match.

Treat a failure as an unresolved search

For a simulated interruption, a different message could be: “We could not complete the search. Try again.” Retrying should preserve the terms and filters. Offer that control only if an operation can actually request results again.

Do not display zero products as though you had received a valid response. If previous results remain, make clear that they belong to another query or an earlier response. A loading screen, an empty response and an error should be recognizable without requiring the person to guess what happened.

Test three paths with the same catalog

Prepare a query with no matches, the blue-and-500-ml combination and a simulated failure. Check what stays on screen, what changes when a filter is removed and whether retrying preserves context. Also check that controls have understandable names and work with a keyboard.

Keep the query, filters, received state, wording and expected result. This proposed test reviews customer recovery; it does not establish full accessibility or additional sales by itself. If a product that should appear remains absent, investigate the data and search rules while preserving the exact request that produced the symptom.

SOURCES & EDITORIAL NOTES

Follow the evidence.

  1. Algolia: How do I handle no results pages? ↗
  2. USWDS: Search ↗
  3. Algolia DocSearch v4: API reference, errorScreen and noResultsScreen ↗

Sources checked November 28, 2026. The exercise scenarios and figures are fictional. Our editorial standards.

Good ideas are better when they travel.