krisk / Fuse

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

Replace an existing item with new one #507

Closed pejman1 closed 3 years ago

pejman1 commented 3 years ago

Description

A clear and concise description of the problem or missing capability... An important feature is missed in this library. I want to replace and update an item among thousands of items . instead of replace who collection because of one item. I need to update just one item and there is no way to do that ### Describe the solution you'd like If you have a solution in mind, please describe it. like remove item. it would be suffice if there was a function to find item and replace it with new one
krisk commented 3 years ago

For now, you could do remove and add.

I suppose I could add a replace method. Let me think about it some more.

pejman1 commented 3 years ago

For now, you could do remove and add.

I suppose I could add a replace method. Let me think about it some more.

Thank you. I am looking for a fast replace or update method. the remove and add function is not enough fast in a large collection.

github-actions[bot] commented 3 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

pejman1 commented 3 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

Still waiting for new feature

DaSchTour commented 3 years ago

I would also think a replace or update would be very useful. I'm thinking about how to implement the indexing into redux storage.