Wrote an article
Here's how you can use 🔥 fast JS Search from Brian Vaughan to get site search on your SSG site and keep it static with no external search services.

JS Search is a lightweight Lunr implementation.

Hope you find this useful.

https://rodneylab.com/js-search-gatsby/