Closed k-doering-NOAA closed 1 year ago
Search is using https://lunrjs.com/ and I suspect it has not been properly set up, but is just reading in results from this file: https://github.com/noaa-fisheries-integrated-toolbox/resources/blob/faf4f8e3f4a889fb21aece3a6dc18de63e1be221/assets/js/lunr/lunr-store.js
So it is not providing actual site search results.
This provides some advice on how to get lunr working with jekyll static sites: https://rayhightower.com/blog/2016/01/04/how-to-make-lunrjs-jekyll-work-together/
after much exploration, the solution was simple: just delete the file called lunr-store.js.
I think now that the index is probably being built on the fly; if the site got very large, we may want to prebuild the index, which is what lunr-store.js was demoing.
when searching, the results have broken links, due to trying to connect to a "local host".