Using Lunr with Eleventy via Netlify Serverless Functions

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 …


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


Print Share Comment Cite Upload Translate Updates
APA

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/

MLA
" » Using Lunr with Eleventy via Netlify Serverless Functions." Raymond Camden | Sciencx - Wednesday June 2, 2021, https://www.scien.cx/2021/06/02/using-lunr-with-eleventy-via-netlify-serverless-functions/
HARVARD
Raymond Camden | Sciencx Wednesday June 2, 2021 » Using Lunr with Eleventy via Netlify Serverless Functions., viewed ,<https://www.scien.cx/2021/06/02/using-lunr-with-eleventy-via-netlify-serverless-functions/>
VANCOUVER
Raymond Camden | Sciencx - » Using Lunr with Eleventy via Netlify Serverless Functions. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/06/02/using-lunr-with-eleventy-via-netlify-serverless-functions/
CHICAGO
" » Using Lunr with Eleventy via Netlify Serverless Functions." Raymond Camden | Sciencx - Accessed . https://www.scien.cx/2021/06/02/using-lunr-with-eleventy-via-netlify-serverless-functions/
IEEE
" » Using Lunr with Eleventy via Netlify Serverless Functions." Raymond Camden | Sciencx [Online]. Available: https://www.scien.cx/2021/06/02/using-lunr-with-eleventy-via-netlify-serverless-functions/. [Accessed: ]
rf:citation
» Using Lunr with Eleventy via Netlify Serverless Functions | Raymond Camden | Sciencx | 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.

You must be logged in to translate posts. Please log in or register.