Appearance
Search and suggestions
Who: guest or listener; staff (zero-result report); system (indexing, trending).
Entry points
| Kind | Entry |
|---|---|
| REST | GET /search?q, GET /search/types/:type?q, GET /search/suggest?q, GET /search/trending, POST /search/clicks |
| History | GET /me/search/history, DELETE /me/search/history/:id, DELETE /me/search/history, GET /me/search/recent-results, DELETE /me/search/recent-results/:id |
| Staff | GET /staff/search/zero-results |
| Assistant | discovery sub-agent search tool |
| Deep link | search |
Flow
- Typing →
GET /search/suggest(cached hot prefixes, typo tolerant, popularity and personal boost). - Submit →
GET /search→ grouped results with a top hit;GET /search/types/:typefor one group with filters. Logged throughsearch.logged; zero results recorded. - Tap a result →
POST /search/clicks(recent results, ranking feedback). search.trending-recomputerebuilds trending;search.maintenanceprunes logs.- Index is kept by events in the composition root: releases, recordings, playlists, muzcast shows and episodes, live streams, mart products. Taken-down or deleted items are removed.
Exit states
| State | Code | Actions | Client next |
|---|---|---|---|
| Results | — | — | Render groups |
| Bad query | SEARCH_QUERY_INVALID, VALIDATION_FAILED | — | — |
| Too fast | RATE_LIMITED | wait | Debounce |
| No results | empty groups | — | Show suggestions and trending |
Known gaps
- Creators, users, DJ sets and radio stations are not indexed, so searching an artist's name finds only their releases (I12).