Skip to content

[bug] Web search: the Filters sheet's Advanced sort shows Date Added while results rank by relevance #4453

Closed

Description

@Quick104

What happened

On the web search results page, the Filters sheet's Advanced view shows a sort the search isn't using. A text search ranks by relevance, but Advanced → Sort by reads Date Added / Descending. Picking Date Added / Descending there does nothing, because it is already the selected value. With sort=relevance in the URL, the same control reads Title / Ascending instead.

On main, the toolbar sort menu had the same problem. #4450 gives the toolbar a Relevance entry, so after it merges, the toolbar says Relevance and the Advanced sheet says something else.

Steps to reproduce

  1. On a Silo dev deployment with a Movies library, search for a title that has library matches, such as "alien".
  2. The toolbar sort menu shows Relevance (with feat(web): give search results the full width and a fixed spot for requests #4450) and the results are in relevance order.
  3. Open Filters and switch to Advanced.
  4. Sort by shows Date Added, order Descending.
  5. Choose Date Added / Descending: nothing changes.

Expected behavior

The Advanced sheet agrees with the toolbar on a text search. It either shows Relevance as the sort (with no order control, as the toolbar does) or hides its Sort by on a search, the way the Guided view already does.

Silo version / commit

Reproduced on a build of #4450's head (e69b009). The code on main at 4564351 has the same mismatch between the sheet and the results; that was checked by reading the code, not reproduced.

Deployment

A Silo dev deployment (sandbox, single node).

Clients affected

Web only.

Relevant logs

No logs available. No request fails; the control shows the wrong value.

Technical notes

  • A search URL with no sort parses to a Date Added placeholder (normalizeQueryDefinition), marked explicit_sort: false. CatalogFilterSheet passes that definition to CollectionRulesEditor, whose FilterSortControls lists getCollectionSortOptions, which has no Relevance entry.
  • CatalogFiltersPanel only hides the sort for the Guided editor (showSortControls={false}). feat(web): give search results the full width and a fixed spot for requests #4450 adds a relevanceSort prop to CatalogFiltersPanel that the sheet could use to hide the Advanced Sort by on a search, or to offer Relevance there.
  • updateDefinition in CatalogFiltersPanel doesn't set explicit_sort the way the toolbar path does. If the sheet keeps a sort control on a search, a pick there should count as the viewer's choice.
  • This follows feat(web): give search results the full width and a fixed spot for requests #4450: the fix needs its relevanceSort prop, so it waits for that pull request to merge.

AI fields

  • Harness: Claude Code in T3 Code
  • Tools: Claude Code
  • Model: claude-opus-5-5
  • Involvement: Found and written by an AI agent during a maintainer review; the reproduction above was run by the agent.
  • Independent review: the finding was checked against the code by a separate verifier agent and by gpt-6.2-sol.

Confirmations

  • I searched existing issues and found none for this.
  • I reproduced this on a real deployment (a Silo dev deployment).

Source: found in review of #4450

Activity

  1. added
    bug
    on Nov 17, 2026
  2. added
    impact: polish
    priority: P2
    triaged
    on Nov 17, 2026
  3. Rhainland commented on Nov 18, 2026

    @Rhainland
    Contributor

    Reproduced on origin/main at e8de1117e: on a local build with a small movie library, searching "alien" ranks results by relevance and the toolbar shows Relevance, but Filters → Advanced shows Sort by Date Added / Descending (Title / Descending with sort=relevance in the URL). Same at desktop and phone width.

    Cause: Advanced's Sort by uses the shared sort list, which has no Relevance entry, so it showed the Date Added placeholder a search URL without a sort carries. The Guided view hides its sort in the sheet; Advanced did not.

    Fix in #4507: on the search page the sheet's Advanced view no longer shows a Sort by, so the toolbar (which offers Relevance and the same field sorts) is the only sort control. Checked on a local build of the fix: the same search and Advanced view now show no sort row while the toolbar reads Relevance; library browsing still shows Advanced's Sort by, toolbar sorts still re-order the search, and a media type change in Advanced keeps relevance. No test added: this hides a control on one surface, which the repository's test guidance leaves untested.

    AI disclosure: reproduced and fixed by Claude Code (claude-opus-5-5) at the maintainer's direction.

  4. added a commit that references this issue on Nov 19, 2026
    002a6c6
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

    bugimpact: polishpriority: P2triaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions