krisk / Fuse

Lightweight fuzzy-search, in JavaScript
https://fusejs.io/
Apache License 2.0
18.1k stars 766 forks source link

serialize index #250

Closed cekvenich closed 4 years ago

cekvenich commented 6 years ago

Is it possible to save an index so I don't have to build it but once? ex: https://lunrjs.com/guides/index_prebuilding.html

laran commented 6 years ago

I would like to see this as well. I have a static site. I would like to:

  1. index the site locally at build time
  2. simply upload the pre-built index as a static file to my server
  3. load the index into the browser on the client-side
  4. run search fully in the browser

Is fuse able to save an index to a file and then load an index from a file/url and search from it?

vladimiry commented 5 years ago

As far as I can see by looking at the source code there is no indexing process involved. Each time you execute the search it iterates through the original data portion passed to the constructor.

baer commented 5 years ago

I believe this was answered and closed here: https://github.com/krisk/Fuse/issues/55

github-actions[bot] commented 4 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days