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
Search function multi-language support #80
Comments
Hi! I will need to check what can be done. |
I tried Unfortunately it's either chinese or english (or other language) not both at the same time. |
Russian search is not supported too. @alex-shpak Any recommendations. How can I help? |
Hi! There is now BookSearchConfig = '''{
encode: false,
tokenize: function(str){
return str.replace(/[\x00-\x7F]/g, "").split("");
}
}''' For russian I think stemmer needs to be set Future work will include integration with multi-lang mode, having different configuration for indexing per language. |
I think this config should work for russian, filter is optional. BookSearchConfig = '''{
split: /[^a-zа-яё0-9]/gi,
filter: [
"в", "на", "и", "не", "о", "от", "с"
]
}''' |
Changes has been merged to |
I worked around this issue by below config: {
encode: false,
tokenize: function(str) {
return str.split(/\W+/).concat(str.replace(/[\x00-\x7F]/g, '').split('')).filter(e => !!e)
}
} |
never mind, it's wrong (only works when you search upper case) |
Other aspects of this theme are good for multi-language support, but the search function currently only supports English, and I hope to be able to extend the search function to support beyond English, such as Chinese support.
The text was updated successfully, but these errors were encountered: