3 ms·
Talking about search on a static docs site, has anyone tried a static pre-generated search like https://lunrjs.com/ https://lunrjs.com/ ?
by gingersnap 9mo ago
Talking about search on a static docs site, has anyone tried a static pre-generated search like https://lunrjs.com/ https://lunrjs.com/ ?
- jorams 9mo agoBasically every Elixir package's docs include search based on Lunr, as it's included by default by ExDoc[1]. It's quite good. [1]: https://hexdocs.pm/ex_doc/ https://hexdocs.pm/ex_doc/
- nicbou 9mo agoI use Lunr on allaboutberlin.com. It's simple and effective, but searching the whole content would have required loading more files than I was comfortable with. Therefore it only searches titles and descriptions. There are probably workarounds, but it's the only limitation I can think of. Otherwise Lunr just works.
- butz 9mo agoI think https://develop.kde.org/docs/ https://develop.kde.org/docs/ is using lunrjs for search, but downloading and parsing almost 2MB file of search data creates some hiccups on website during load.
- fanf2 9mo agoI use https://pagefind.app/ https://pagefind.app/ for search on my website. It’s really easy to add to a static site.
- victorbjorklund 9mo agoI been using this project (seems to be abandoned now but still works) https://stork-search.net/ https://stork-search.net/ Works great.
- phcreery 9mo agovitepress seems to use https://github.com/lucaong/minisearch/ https://github.com/lucaong/minisearch/ and the vitepress docs I have built and used are good.
- captn3m0 9mo agoWe use at endoflife.date, and are fairly happy. We had to add a workaround to get some search terms working (because of how it does stemming, searching for BSD wouldn't show openbsd earlier): https://github.com/endoflife-date/endoflife.date/issues/4924 https://github.com/endoflife-date/endoflife.date/issues/4924), but it is still not 100% perfect: searching for fusion still doesn't get you coldfusion.
- pdyc 9mo agoi use flex search https://github.com/nextapps-de/flexsearch https://github.com/nextapps-de/flexsearch