CloudCannon / pagefind

Static low-bandwidth search at scale
https://pagefind.app
MIT License
3.45k stars 111 forks source link

Make Pagefind available as a Rust library crate #487

Open holyjak opened 11 months ago

holyjak commented 11 months ago

Hello! I currently use the Node API to index custom files (EDN, in particular). It takes around 3 minutes to index 1100 files. I imagine that doing this in Rust would be much faster. Since pagefind is written in Rust, would you consider exposing a Rust API for custom indexing? Thank you!

bglw commented 11 months ago

๐Ÿ‘‹ Hey @holyjak

This is definitely something that could be exposed! ๐Ÿ™‚

One note though โ€”ย the 1.0.3 release does have a performance issue with the API indexing files. If you give 1.0.4-beta.0 an install you should see much-much-much better performance.

Sorry about that! I'll look at preparing a release soon.

holyjak commented 11 months ago

You were right, the 1.0.4 beta is done in 5 sec. Amazing!