Stop a series-title query returning every episode #161

Closed
opened 2026-08-24 11:23:46 +01:00 by naps62-yolo · 0 comments
Owner

Searching a series title returns the series row and, below it, every episode of
that series. Searching rick and morty on the deployed build lists the show
plus all 91 episodes.

The episode query in crates/arr-api/src/search.rs requires every token to
appear in series title || ' ' || episode title, so a query made entirely of
series-title tokens matches every episode the series has.

What to change

Per the amended §9.2: an episode row surfaces only when the query matches
something beyond the series title. bluey hospital must still find the episode
— that is the case the concatenation exists for — but bluey alone must return
the series row and nothing below it.

The straightforward form: keep matching tokens against the concatenation, and
additionally require at least one token to match the episode title on its own.

Done looks like

  • A query whose tokens are all satisfied by the series title returns the series
    row and no episode rows.
  • bluey hospital still returns the episode.
  • A query matching an episode title alone still returns the episode.
  • Tests cover all three.

Non-goals

  • Movie search is untouched.
  • Do not change the grouping or ordering of results (§9.2), only which episode
    rows qualify.

Depends on: #159

Searching a series title returns the series row and, below it, every episode of that series. Searching `rick and morty` on the deployed build lists the show plus all 91 episodes. The episode query in `crates/arr-api/src/search.rs` requires every token to appear in `series title || ' ' || episode title`, so a query made entirely of series-title tokens matches every episode the series has. ## What to change Per the amended §9.2: an episode row surfaces only when the query matches something beyond the series title. `bluey hospital` must still find the episode — that is the case the concatenation exists for — but `bluey` alone must return the series row and nothing below it. The straightforward form: keep matching tokens against the concatenation, and additionally require at least one token to match the episode title on its own. ## Done looks like - A query whose tokens are all satisfied by the series title returns the series row and no episode rows. - `bluey hospital` still returns the episode. - A query matching an episode title alone still returns the episode. - Tests cover all three. ## Non-goals - Movie search is untouched. - Do not change the grouping or ordering of results (§9.2), only which episode rows qualify. --- Depends on: #159
naps62-yolo added this to the Feedback pass milestone 2026-08-24 11:23:46 +01:00
naps62-yolo added the phase/5-uidifficulty/easyarea/apitype/bug labels 2026-08-24 11:23:46 +01:00
naps62-yolo added a new dependency 2026-08-24 11:23:53 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: yolo/arr#161