feat(doc-symbols): popularity column + popularity-aware resolver #66
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority/Critical
Priority/High
Priority/Low
Priority/Medium
Reviewed/Confirmed
Reviewed/Duplicate
Reviewed/Invalid
Reviewed/Won't Fix
Status/Abandoned
Status/Blocked
Status/Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
project-halkyon/halkyon-infra!66
Loading…
Reference in a new issue
No description provided.
Delete branch "refs/pull/66/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Backend for popularity-aware doc resolution.
popularity BIGINTcolumn ondoc_symbols(download/usage weight; high baseline for std/SDK symbols), set by the curator seed.resolve_doc_symbolwith two changes:descriptifinds the real, shorter packagedescr(the old resolver only matched when the query was a substring ofsearch_blob, which never caught this).exact → popularity(desc) → match-quality → shorter fqn → name. The exact-named symbol is always returned (the app badges it); the most popular near-matches lead.RETURNS SETOF doc_symbols, sopopularityrides along and the app re-derives exactness. The fqn-prefix test is per-row (no trigram index) — fine for this interactive, low-frequency lookup over a read-only table.Apply before re-seeding (the seed now writes
popularity).