1.2 KiB
Tip #2 — Search-Synonyms: accept Minecraft item aliases (e.g. 'netherite scrap' ↔ 'ancien
Date: 2026-06-16
Category: search
Source: MC-Survival Wiki Daily Tip (backfilled from state.json)
Note: Title was truncated in the original state.json log. Body matches the 'Search-Synonyms alias table' variant of the same idea.
Search-Synonyms: accept Minecraft item aliases (e.g. 'netherite scrap' ↔ 'ancien
A synonym alias table is a simple ItemAlias model that maps colloquial or region-specific names (like 'gold apple') to the canonical item ('golden apple'). It solves the gap between how players actually talk in chat and how items are named in the database. Player behavior in the server's Discord shows this constantly — players use shorthand, abbreviations, and translations that the wiki's exact-match search cannot resolve. A small seeded table plus an admin UI to extend it is a high-leverage fix that compounds as the server community grows.
Implementation tips
- Add an ItemAlias Prisma model: { itemId, alias, locale }. Seed with the most common 50 misspellings.
- On search, OR the alias column into the query before falling back to fuzzy.
- Let admins add aliases from the item-edit page (small UI win).