krisk / Fuse

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

feat: add the ability to update a document in the index #564

Closed gbittencourt closed 7 months ago

gbittencourt commented 2 years ago

Hello all,

I felt the lack of an ability to update a document in the index. I was doing: removeAt(doc, docIdx) add(doc) But at this way I was loosing the docRef. I hope this commit will solve the problem :)

I also added a test to it.

gbittencourt commented 2 years ago

Hey, any maintainer interested in this MR? If there is something not clear enough on my commit, I can fix it, just let me know :)

krisk commented 2 years ago

Pardon the hiatus. Been an interesting past few months.

This is a neat feature. Let me get to it this weekend.

RealAlphabet commented 1 year ago

This feature is definitely needed.

Oof

Is fuse.js still maintained? If not, do you know of better alternatives?