Skip to content

Search available TV episodes by title and overview #396

Closed

Description

@Rhainland

Problem

Catalog search only indexes and queries media_items, while TV episodes live in episodes. As a result, global search and type=episode search return no result for episode titles such as Who Are You? (Silo S03E01). The web catalog also collapses an explicit All Media selection back to Movies & Series, which excludes episodes from subsequent searches.

Expected behavior

  • Global and episode-scoped search return available TV episodes by episode title and overview.
  • PostgreSQL and Meilisearch providers preserve access controls and stable ranking.
  • Episode search remains bounded and index-backed for catalogs with hundreds of thousands of episodes.
  • Selecting All Media remains explicit while the user edits the search query.

Scope

Add a mixed media-item/episode search path, episode-aware Meilisearch documents and authorization hydration, incremental indexing triggers, concurrent PostgreSQL indexes, and regression coverage for both providers and the web filter state.


AI-use disclosure: issue drafted with Codex from a reproduced user report; reviewed and filed by @Rhainland.

Activity

  1. Tobechukwu-Njoku commented on Aug 24, 2026

    @Tobechukwu-Njoku
    Contributor

    This looks implemented on main — #397 ("feat(search): add TV episode search support") merged 2026-07-23 without closing keywords, so the issue stayed open.

    Checked against main at 820eef77, against the stated scope:

    • Mixed media-item/episode search path — internal/catalog/search_postgres_mixed.go.
    • Episode-aware Meilisearch documents and hydration — internal/catalog/search_meilisearch_provider.go and search_meilisearch_client.go were both part of feat(search): add TV episode search support #397, so the second provider is covered rather than Postgres only.
    • Incremental indexing triggers — migrations/sql/20260713233100_episode_search_outbox_triggers.sql.
    • Index-backed and bounded — migrations/sql/20260713233000_episode_search_indexes.sql.
    • Regression coverage for both providers — internal/catalog/search_episode_db_test.go and the meilisearch client tests. go test ./internal/catalog/ -run Episode passes here against PostgreSQL 18.

    Two things I could not confirm from a static check, worth a glance before closing:

    1. The original repro — searching Who Are You? (Silo S03E01) actually returning the episode — needs a populated library; I only verified the code paths and tests, not that specific query.
    2. The last scope bullet is a web-side behavior ("Selecting All Media remains explicit while the user edits the search query"), and I did not verify the catalog filter no longer collapses All Media back to Movies & Series. If that half is still outstanding it may be worth splitting out rather than closing this wholesale.
  2. Quick104 commented on Sep 4, 2026

    @Quick104
    Contributor

    Fixed on main by #397.

    Available episodes are included in PostgreSQL and Meilisearch search, with episode indexes, outbox updates, access-aware hydration, and mixed-result ranking. Explicit All Media scope is preserved while the query changes.

    Verified the current search implementation and the All Media regression coverage. The merged PR records PostgreSQL, Meilisearch, and web search validation.

    Closing as completed after checking current main (a4c8f4b2).

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions