-
Notifications
You must be signed in to change notification settings - Fork 548
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
Tokenizer returns an empty string #178
Comments
It looks like that It seems that the tokenizer is probably the right place for this check, since it will always be performed while the trimmer may not. On a slightly related note, it seems weird now looking at this that the tokenizer and pipeline are different objects. From what I remember they always are used together, in which case having them separate might not be the right split. If you can put together a PR that moves the check for empty tokens from |
Doh, I see you already did open a PR will take a look. |
I've now pushed a fix for this in the version 0.6.0, please take a look and let me know if you are still seeing issues. |
Lower version is causing nvatom unusable: seongjaelee/nvatom#32 The bug fix is here: olivernn/lunr.js#178
When the given text is an empty string, it should return an empty array. Instead, it returns an array with an empty string.
This gives an error when searching if 1) lunr pipeline is off and 2) doc[field.name] is an empty string.
The text was updated successfully, but these errors were encountered: