LA IDEA ÚTIL

Muestra qué se buscó, qué condiciones siguen activas y qué acción puede cambiar el resultado. Un fallo de búsqueda no demuestra que el producto no exista.

Define qué respuesta recibió la interfaz

En una tienda ficticia, el catálogo disponible contiene una taza azul de 300 ml y una blanca de 500 ml. La búsqueda «taza» con filtros azul y 500 ml se completa correctamente y devuelve cero coincidencias. Ninguna de esas dos fichas satisface las tres condiciones juntas.

Ese resultado difiere de una petición que no pudo completarse por un fallo del servicio. DocSearch de Algolia documenta pantallas separadas para error y ausencia de resultados; lo tomamos como referencia de esa distinción, sin afirmar que la tienda utiliza ese producto ni su versión concreta.

Mantén visibles consulta y filtros

El estado vacío del ejemplo puede decir: «No encontramos resultados para taza con azul y 500 ml». Conserva «taza» en un campo editable y muestra ambos filtros activos. USWDS recomienda que los términos buscados permanezcan en el campo al presentar resultados.

No sustituyas esa explicación por «no vendemos tazas» o «agotado». El conjunto consultado contiene tazas y el cero responde a una combinación. Tampoco sabemos aquí el inventario físico fuera del catálogo disponible. El mensaje debe describir la respuesta conocida, sin convertirla en una afirmación más amplia sobre el negocio.

Ofrece una modificación concreta

Propón «Quitar filtro de capacidad» manteniendo consulta y color. Bajo los datos del ejercicio, esa acción deja aparecer la taza azul de 300 ml, cuya capacidad debe seguir visible. Otra opción es editar la consulta o retirar el color, si la interfaz realmente admite esas acciones.

Algolia señala que el estado sin resultados puede ofrecer acciones para cambiar consulta o filtros. Nuestra propuesta retira una condición por vez para hacer comprensible el cambio. Si muestras recomendaciones fuera de las condiciones originales, identifícalas como alternativas: no presentes la taza de 300 ml como coincidencia de 500 ml.

Trata el fallo como una búsqueda pendiente

Para una interrupción simulada, un mensaje distinto sería: «No pudimos completar la búsqueda. Intenta de nuevo». El reintento debe conservar los términos y filtros. Solo ofrece ese control si existe una operación que pueda volver a solicitar resultados.

No dibujes cero productos como si hubieras recibido una respuesta válida. Si conservas resultados anteriores, deja claro que pertenecen a otra consulta o a una respuesta anterior. Una pantalla de espera, una respuesta vacía y un error necesitan poder reconocerse sin que la persona adivine qué ocurrió.

Prueba tres recorridos con el mismo catálogo

Prepara una consulta sin coincidencias, la combinación azul y 500 ml y un fallo simulado. Comprueba qué permanece en pantalla, qué cambia al quitar un filtro y si el reintento conserva el contexto. Revisa también que los controles tengan nombres comprensibles y puedan utilizarse con teclado.

Guarda consulta, filtros, estado recibido, texto y resultado esperado. Esta prueba propuesta revisa la recuperación del cliente; no demuestra por sí sola accesibilidad completa ni ventas adicionales. Si un producto que debería aparecer sigue ausente, investiga datos y reglas de búsqueda conservando la petición exacta que produjo el síntoma.

COMPLETE ENGLISH TRANSLATION

Search with no results: keep the query and offer a way forward

Someone searches for a blue 500 ml mug and gets an empty screen. There may be no matching combination, an incomplete catalog or a query that never finished. One sentence cannot explain all those states.

Open the English edition ↗

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.

完整中文翻译

搜索无结果:保留查询,并提供下一步

顾客搜索一只蓝色 500 毫升杯子,却看到空白页面。原因可能是组合没有匹配项、目录不完整,也可能是查询根本没有完成。同一句提示不能解释所有状态。

打开中文独立页面 ↗

显示搜索了什么、哪些条件仍然有效,以及什么操作能够改变结果。搜索失败并不能证明商品不存在。

确定界面收到了什么响应

一家虚构商店的可用目录包含蓝色 300 毫升杯子和白色 500 毫升杯子。搜索“杯子”,并筛选蓝色和 500 毫升,查询成功完成却返回零匹配。两个商品都不同时满足这三个条件。

这不同于服务故障导致请求无法完成。Algolia 的 DocSearch 文档区分错误页面与无结果页面;我们用它说明这种区别,并未声称商店使用该产品或其中某个版本。

保持查询与筛选可见

本例空状态可以写:“未找到同时符合杯子、蓝色和 500 毫升的结果。”在可编辑输入框中保留“杯子”,同时显示两个有效筛选。USWDS 建议在展示结果时,让原搜索词保留在输入框中。

不要把它改成“本店不卖杯子”或“已售罄”。被查询的目录中有杯子,零匹配针对的是条件组合。这里也不知道可用目录之外的实物库存。提示应描述已知响应,而不是扩大成对整个企业的断言。

提供具体修改动作

可以提供“移除容量筛选”,同时保留查询与颜色。在本例数据下,操作后会显示蓝色 300 毫升杯子,而且容量必须继续清楚可见。如果界面确实支持,也可以让顾客修改查询或取消颜色条件。

Algolia 说明,无结果状态可以提供修改查询或筛选的操作。我们的建议一次取消一个条件,让变化更容易理解。如果推荐商品不符合原条件,应明确标为替代选项,不要把 300 毫升杯子呈现为 500 毫升的匹配结果。

将失败视为尚未解决的搜索

模拟中断时,应使用不同提示,例如:“未能完成搜索,请重试。”重试应保留搜索词和筛选条件。只有在确实能够重新请求结果时,才提供这个控件。

不要把零个商品画成已经收到有效响应。如果保留之前的结果,应说明它们属于另一查询或先前响应。加载中、空响应与错误需要可被辨认,不能让顾客猜测究竟发生了什么。

用相同目录测试三条路径

准备一个没有匹配项的查询、蓝色加 500 毫升的组合,以及模拟故障。检查屏幕保留什么、取消一个筛选会改变什么,以及重试是否保留上下文。也检查控件名称是否易懂、能否用键盘操作。

记录查询、筛选、收到的状态、文案及预期结果。这项建议的测试检查客户如何继续操作,不能单独证明全面无障碍或新增销售。如果本应出现的商品仍然缺失,应保留产生该现象的准确请求,再调查数据与搜索规则。

FUENTES Y NOTAS EDITORIALES

Fuentes y método

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

Fuentes consultadas el 28 de noviembre de 2026. Los casos y datos numéricos de los ejercicios son ficticios. Editorial standards · Disclosures.