Files
yellowjacket/backend
yonlu b613e03398 fix: name-match boost prevents popular unrelated artists from dominating
Searching 'the teenagers' ranked The Beatles (#2) and Rolling Stones
(#3) above the actual band because MB text search matches the word
'the' at score ~54, and 142M LB listens with 60% popularity weight
overwhelmed the low text relevance.

Added boostNameMatches() as a post-reranking step that stable-sorts
results by name-match tier:
  0 = exact match ('the teenagers' == 'the teenagers')
  1 = name starts with query
  2 = query is a substring of the name
  3 = no substring match (only individual words matched)

Within each tier, the existing popularity-blended order is preserved.
This ensures The Teenagers (all variants) always rank above The Beatles
for this query, while The Beatles still rank highly among tier-3 results.

Also added the second Various Artists MBID (89ad4ac3) to the SPA
blocklist.
2026-03-30 01:27:25 -04:00
..