Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom tokenizer not actually possible? #453

Open
patricklucas opened this issue Nov 29, 2024 · 0 comments
Open

Custom tokenizer not actually possible? #453

patricklucas opened this issue Nov 29, 2024 · 0 comments

Comments

@patricklucas
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant