Dev drops Algolia for custom in-memory search on Next.js 14 blog
A developer migrated cloudapp.dev's on-site search away from Algolia after determining that a hosted index was unnecessary for a catalog of roughly 220 blog posts. The new solution loads the entire content store — about 8 MB of JSON — into memory on the first server request, eliminating the need for external sync jobs, webhooks, and API credentials. Search queries run as simple string matches against an in-memory array, with a weighted scoring system that prioritises title matches over body matches. The same in-memory data also powers the site's homepage tag cloud, keeping search results and facets automatically consistent. The developer acknowledged Algolia remains a strong choice for large catalogs, but concluded the operational overhead was not justified at their scale.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in