An Astro endpoint writes /search/<lang>.json at build time; MiniSearch loads it once per language with accent-free normalization, prefix and fuzzy matching.
- The same processTerm must be set for indexing and for search.
- Caching the loading promise prevents a duplicate download.