Full-text search across all articles
· 2 min read
Search now reads through the entire body of every article — not just titles and subtitles.
What changed
Previously, the ⌘K search overlay only matched against article titles and subtitles. So searching "spot instances" returned nothing, even though EC2 Pricing Models covers Spot Instances in detail.
Now search works across all ~140 articles' full content.
How it works
A pre-built search-index.json (404 KB) is lazy-loaded the moment you open search. By the time you've typed a word, it's ready.
Results are ranked in two tiers:
- Title / subtitle matches — appear first, highlighted in the result title
- Body-text matches — appear below, with a snippet showing the matching context
EC2 Pricing Models ← title match
AWS Pricing Models ← subtitle match ("Spot" in subtitle)
─────────────────────────────────────────
Amazon EC2 …Spot Instances Spare capacity, cheapest… ← body match + snippet
AWS Batch …integrates with EC2 (including Spot Instances for cost…
Amazon EMR …Spot Instances can significantly reduce cost…

