nextapps-de / flexsearch

Next-Generation full text search library for Browser and Node.js
Apache License 2.0
12.54k stars 492 forks source link

Cloning of flexsearch objects #425

Open flip111 opened 10 months ago

flip111 commented 10 months ago

Could a clone method be added to the Document object? I would like to write a foreign function interface for this library in purescript. I can not guarantee pure code with hidden mutable state, this could be solved by cloning the object on each change. Then the old object will remain available untouched.