Company
Date Published
Author
Brian Douglas
Word count
981
Language
English
Hacker News points
3

Summary

Netlify has switched from its own custom search solution, lunr.js, to Algolia for faster search results. This decision was driven by the growth of the `PagesIndex.json` file and the benefits of using a hosted search-as-a-service like Algolia. The team replaced their existing indexing task with a new "send-index-to-algolia" task that sends the indexed data directly to Algolia, reducing build size and improving search speed. With Algolia, Netlify is now able to deliver faster search results, with an average response time of less than 10ms. Additionally, Algolia provides features like search analytics, which allows the team to identify areas for improvement in their content. The switch to Algolia was found to be trivial and has brought several benefits to the site's search functionality.