Skip to content

[bug] A full-title search hides the exact Request to add match below loose meaning-only library results #4396

Closed

Description

@Darhole

What happened

On the web Search page, with Match by meaning as well as words on, searching a title that isn't in my library gives very different results depending on how much of the title I type.

  • Uchuujin: the library section says "Nothing in your library matches". Request to add shows at the top with 8 TMDB results. The one I wanted, Uchuujin from Outer Space (2007, movie), is third.
  • Uchuujin from Outer Space: the library grid fills with 280 movies and series, led by alien and outer-space titles. None of them contain Uchuujin. Request to add renders after all 280, with one result: Uchuujin from Outer Space (2007). I only see it if I scroll to the end of the grid.

Typing the full title makes the title harder to find than typing one word of it. This happened on 3 of 3 attempts. One-word searches still work as expected.

I'm a user on this server, not its admin, so I have no server logs or settings to share. The search responses show the server has meaning search on ("mode": "hybrid" below).

Steps to reproduce

  1. Turn on Match by meaning as well as words and make sure TMDB request discovery is enabled.
  2. Pick a movie that's on TMDB but not in your library, with a title whose words other than the first describe a theme the library has (here, Uchuujin from Outer Space).
  3. On the web Search page (Media tab, Movies & Series), search the first word only (Uchuujin). Request to add shows at the top with the title in the list.
  4. Search the full title (Uchuujin from Outer Space). The library grid fills with themed titles, and Request to add sits below the end of the grid.

Expected behavior

Searching the full title should find it at least as easily as searching one word of it. When the library has no keyword match and TMDB has an exact title match, Request to add (or that match) should come before library results that only matched by meaning.

Silo version / commit

2488 · 4336abf

Deployment

Docker (other)

Area

Search

Clients affected

Web UI

Client app and device

Safari 27.2 on macOS 27.2.1

Relevant logs

No server logs (I'm not the server admin). search_diagnostics from the web app's POST /api/v2/catalog/query responses, first page of each search. The full-title capture was made with the query in lowercase, because the web app had cached the mixed-case search; the first results were the same. Only search_diagnostics is shown; the rest of each response (window_cursor and the items) is left out.

Uchuujin, request body {"source":"query","match":"all","groups":[],"q":"Uchuujin","limit":60,"skip_total":true}, 0 items, has_more: false:

{"result_window_limit":1000,"session_expires_at":"2026-11-16T15:29:48.713Z","provider":"meilisearch","mode":"keyword","semantic_used":false}

uchuujin from outer space, request body {"source":"query","match":"all","groups":[],"q":"uchuujin from outer space","limit":60,"skip_total":true}, 60 items, has_more: true. Scrolling loaded 6 pages and 280 items before has_more went false, all in hybrid mode:

{"result_window_limit":1000,"session_expires_at":"2026-11-16T15:30:34.566Z","provider":"meilisearch","mode":"hybrid","semantic_used":true}

Technical notes

Suspected cause, from reading the code at 4336abfd. The keyword and hybrid modes in the logs match it, but I can't see the server's scores.

  • One-word searches stay keyword-only. Uchuujin matches nothing in the library, so the library is empty and tmdbMayRescueLibrary puts Request to add first (web/src/pages/Catalog.tsx).
  • The full title runs as hybrid. Since fix(search): stop meaning-based search from returning the whole library #4058, the meaning-only query keeps any item scoring at least the 0.3 cosine floor (meilisearchSemanticMinCosine in internal/catalog/search_meilisearch_provider.go). "from Outer Space" is enough to put alien and space films above that floor, so the library is no longer empty.
  • Once libraryHasResults is true, RequestToAddSection renders after ItemGrid, however many results that grid has and however weak they are.

This is related to #3963 (fixed by #4058). That fix stopped hybrid search returning the whole library. This one is about meaning-only matches outranking an exact TMDB title match.

Possible fixes:

  • Treat a library with no keyword hits as empty for placement, so Request to add renders first when only meaning matches came back.
  • Pin an exact or near-exact TMDB title match above meaning-only library results.
  • Revisit the 0.3 floor for multi-word queries that read like a title.

AI harness

Claude Code (desktop app)

AI tool(s)

Claude Code

AI model(s)

claude-opus-5-5

AI involvement

AI-assisted

Independent or adversarial review

n/a

Confirmations

  • I searched open and recently closed issues and pull requests, and this is not already reported
  • I reproduced this myself on a real deployment
  • Any logs provided are raw apart from marked redactions and are not AI-summarized; if none were available, I said so above

Activity

  1. added
    bug
    impact: usability
    priority: P2
    triaged
    on Nov 16, 2026
  2. blurbery commented on Nov 18, 2026

    @blurbery
    Contributor

    This is fixed on main by two changes that merged on 17 and 18 November:

    One difference from the expected behaviour above: an exact TMDB title match isn't pinned above meaning-only library results. It shows in the request row after the first two rows of library results. If that still gets in the way on a build with both changes, reopen this or file a follow-up.

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: usabilitypriority: P2triaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions