krisk / Fuse

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

.add and .remove methods not working in js #488

Closed arkRedM closed 3 years ago

arkRedM commented 3 years ago
const fuse = new Fuse([..])  
// add
fuse.add("xyz")
=> ;; .add is not a function(err)

Am I reading the docs wrong? https://fusejs.io/api/methods.html

Screenshot 2020-09-14 at 10 08 48 PM

Functionality I am looking for is:

  1. Add items to the index after the index is made using fuse instance created as above
  2. Remove items from the index using fuse instance created as above

@krisk

Thanks