Hello Community :),
While researching to create "Search" capability for my static site, I have found two main libraries: Lunr (https://github.com/olivernn/lunr.js/) and Stork (https://github.com/jameslittle230/stork).
Search Functionality:
Following is how I anticipate integrating search into my static site
- Locally, build an index (JSON) file against my blogs (mds, astro etc files). Hopefully via tooling provided by one of these libraries.
- On the website, only load this JSON file when user clicks the search button.
- Then in browser, leverage Lunr or Stork or any community suggested library to search against the JSON index file.
Question:
1/ Does anyone have experience with either of these? If so which one do you recommend?
2/ Any existing Astro integration or other library to check out for Search capability?
Thank you for your help and time!