Skip to content

Discover: show "Showing results for" with the API's corrected query #516

Closed

Description

@neuromechanist

Part of OpenScience-Collective/osa#652 (E6.4 in the plan, its first step, which needs no AI).

Design: board D2, Discover.dc.html.

Goal

The search API already returns corrected_query when a word in the query was one typo away from a catalog word (nemar-cli backend/src/services/dataset-search.ts, ADR 0116), and the website reads none of it.
When it is present, Discover shows "Showing results for <corrected_query>" above the results, with a link to search the original words instead.

Verify

Website unit tests for present, absent and equal-to-the-query cases; a staging check on test.nemar.org.

Depends on

Nothing.

Activity

  1. neuromechanist commented on Nov 11, 2026

    @neuromechanist
    ContributorAuthor

    Done in #520, merged into staging (test.nemar.org). It reaches nemar.org with the next release to main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions