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

Do not force string in Index#add() when custom encoder #432

Open pbvahlst opened 8 months ago

pbvahlst commented 8 months ago

Currently Index#add() converts every input to a string before passing it to the encoder for further processing. I would be great if it was up to the encoder to handle how different input types should be handled and converted into a string.