-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
How can I search mixed language text? #357
Comments
Hi! There is param in i18m called Current settings are taken from their docs |
Related issues in flexsearch repo |
Hi! |
Hi!
I think It is little strange because I do not need any custom tokenize function, and just use split function. 😢 |
Cool 👍 |
it is not work now. |
This is working for me. function(str){
let result = []
result.push.apply(result, str.replace(/[\x00-\x7F]/g, "").split(""));
str.split(/[^a-zA-Z0-9\u00C0-\u00ff]/g).forEach(t => {
if (t.length > 0) {
result.push.apply(result, t.toLowerCase().split(/[\p{Z}\p{S}\p{P}\p{C}]+/u));
}
});
return result;
} |
Hello.
My markdown page contains "Korean" and "English" text like below
### 코드code
So, I want to search text with mixed language like "코드code", but I think it only supports one language per file/directory.
Is there any way searching with mixed language?
The text was updated successfully, but these errors were encountered: