nextapps-de / flexsearch

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

Cloning of flexsearch objects #425

Open flip111 opened 9 months ago

flip111 commented 9 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.