Self-Contained Search for Archived Static Site?
I've recently prepared a static version of a former WordPress site for the family of its deceased author, who want to keep the site online in perpetuity, in his memory.
The WordPress version of the site had a search function which, obviously, dynamically searched the WP database. I want to re-create a similar search index in the static version. Preferably in s self-contained way that doesn't rely on external servers eg. Google, DDD, Algolia etc. as those APIs may change in future and I want to be able to freeze the site as it currently is, without having to revisit it over the coming years because stuff has broken.
Most of the 'roll your own' search options out there seem to be overly complicated for what I need, as they're designed to be used on sites where the content is changing and being added to. As this site is being frozen 'as is', I just basically need something that will index the current content and prepare some kind of index of titles/keywords which can then be searched against.
Is anyone aware of anything that would fit the bill?
3 comments
[ 4.4 ms ] story [ 15.3 ms ] threadhttps://github.com/farzher/fuzzysort
[1] https://lunrjs.com/
[2] http://elasticlunr.com/
[3] https://stork-search.net/
The site I'm working with has 600+ articles. So I was hoping for something that would automatically generate its own index by scanning the text contained in all those articles automatically.
Perhaps it's not possible in a non-database site.