Closed rafaelcamaram closed 1 month ago
I want to use Fuse for my task and I had a similar question. Is it necessary to pass as the first argument all the data that is already present in the index? Is there any way to make the first argument easier?
I have about 100 text documents. I want to pre-index them and don’t want to drag them entirely in runtime.
This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 30 days
Is there an existing issue for this?
Your question
I'm currently storing an index in a
.json
file and I'd like to be able to read it later (once the app restarts) and be able to query against it again.Unfortunately, it's not returning the items metadata when I read the index from file. I'm assuming that this is because
fuse.js
doesn't store the item's metadata but only the indexes?The first time I run the app, it probably do everything in memory (and that's why it works fine) and then it outputs me the result below when I try to query:
But, when I open the app again and it reads from disk, it didn't return me the
item
property:Question: is there any way to make
fuse.js
to store the metadata and get it working?cc: @krisk