You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both the documentation and TypeScript types suggest you can pass a custom tokenizer as a function, but as far as I can tell this actually does nothing. Looking at the code, the tokenize option is only ever used in a switch statement that looks for the known string values, and no code path ever tries to call it as a function (the default branch of the switch assumes "strict"): https://github.com/nextapps-de/flexsearch/blob/961c3ae84a87fb3af2a52047fd7c8adc8949b86d/src/index.js#L166C33-L166C39
Can anyone else confirm this?
The text was updated successfully, but these errors were encountered:
Both the documentation and TypeScript types suggest you can pass a custom tokenizer as a function, but as far as I can tell this actually does nothing. Looking at the code, the
tokenize
option is only ever used in a switch statement that looks for the known string values, and no code path ever tries to call it as a function (thedefault
branch of the switch assumes"strict"
): https://github.com/nextapps-de/flexsearch/blob/961c3ae84a87fb3af2a52047fd7c8adc8949b86d/src/index.js#L166C33-L166C39Can anyone else confirm this?
The text was updated successfully, but these errors were encountered: