Remix.run Logo
socalgal2 8 days ago

I needed to add search to my own website. I wanted it to be local search (the titles for the documents are all available locally). I tried several different popular 1000s of stars JavaScript search libraries. All but one failed on simple searches. Like if the title was "See Spot Run to the Park" and my search was "Park" or "Run" this title would not be listed as a result and titles with neither word would appear. I reported the issues, they were ignored as "working as intended". Not sure why anyone uses these libraries. I suspect they don't actually test. The plug them in, it appears to work at a glance, and they ship it.

I'm talking about Fuse.js, FlexSearch.js, etc.... I don't remember which other ones I tried but was shocked out bad the results were

brycewray 8 days ago | parent [-]

Have you tried Pagefind?

https://github.com/Pagefind/pagefind

https://pagefind.app/

socalgal2 7 days ago | parent [-]

no. At a glance it appears to be create an index at site build time. That's not what I needed. I needed to search user document titles (different for every user). Those document titles are synced to local storage. So not a build time thing