This content originally appeared on Raymond Camden and was authored by Raymond Camden
Lunr is a great client-side search engine that works really well with the Jamstack. (Be sure to see my earlier posts on the topic: Adding Search to your Eleventy Static Site with Lunr, Integrating Navigation Search with Lunr and Eleventy, and Using Pre-Built Lunr Indexes with Eleventy) While I like the simplicity of Lunr, it requires that your searched data be loaded on the client-side. This makes it a bad fit for large sites. For example, my blog has over six thousand posts so I went Algolia instead. However, I was doing some thinking recently and realized that Lunr can also be used on the server as well. I decided to take a stab at trying this out and here's what I came up with.
This content originally appeared on Raymond Camden and was authored by Raymond Camden
Raymond Camden | Sciencx (2021-06-02T18:00:00+00:00) Using Lunr with Eleventy via Netlify Serverless Functions. Retrieved from https://www.scien.cx/2021/06/02/using-lunr-with-eleventy-via-netlify-serverless-functions/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.