Sangeetha-Grantha

Metadata Value
Status Completed
Version 1.0.0
Last Updated 2026-11-02
Author Sangeetha Grantha Team

Track: Lexical Lyric Search and Searchable Raga Picker

ID: TRACK-159 Status: Completed (2026-11-02): implemented and verified; changes are uncommitted on branch track-159-lexical-lyric-search-and-raga-picker (branched from track-158-mobile-preview, which is also unpushed) Owner: Seshadri Created: 2026-11-02 Updated: 2026-11-02

Goal

Fix the two Rasika mobile defects that TRACK-158 found and confirmed against the dev catalogue, in the mobile app and in Mobile Preview together.

Context

Intent

Status: Accepted Accepted by: Seshadri (chat instruction: “Fix the below defects both in Mobile and Mobile preview feature”) Accepted at: 2026-11-02

Problem

  1. A rasika who types a line of sahitya in “Titles & lyrics” finds nothing, though the mode promises lyrics.
  2. A rasika filtering by raga can pick only from the first 30 of 1,014 ragas.

Proposed outcome

  1. Lexical krithi search also matches stored lyrics, in every script, so the label is true. Result order stays title order.
  2. The raga picker can find any raga by name and page through the rest; the composer picker can page. A selected raga stays visible even when it is outside the loaded page.
  3. Mobile Preview behaves the same, and its filter-sheet note about the 30-raga limit is removed.

Constraints

Spec

Status: Accepted Accepted by: Seshadri (chat instruction) Accepted at: 2026-11-02

D7: lyric clause in the lexical filter

D8: searchable, pageable pickers

Alternatives rejected

Risks

Risk Mitigation
Very short queries match many lyrics Already true for titles; paging caps results at 90
Wider V1 matching surprises an old client DTOs unchanged; documented
Slow lyric scan on a larger catalogue Trigram index; a test asserts the clause is a single subquery

Plan

Plan Status: Accepted (2026-11-02, Seshadri, chat instruction)

# Step Check
1 D7 repository: lyric clause and pattern helper DAL integration tests: phrase in the middle of a lyric, across a line break, in another script, case-insensitive; a draft’s lyric is hidden; title search unchanged
2 D7 route and preview: same route, no code API route test: GET /v2/catalogue/krithis?query=<lyric phrase> and the preview mounts return it
3 D8 mobile presenter and sheet commonTest presenter tests: search replaces the list, load more appends, stale response dropped, selected raga stays visible, composers page
4 D8 Mobile Preview picker Vitest component tests; typecheck, lint, build
5 Docs and verification make test, make test-integration, make test-frontend, shared jvmTest, make check-docs; live check on the dev stack for both defects

Progress Log