Hi Brendan, how can I search Chinese characters in Mac or iOS version? Say I have a record field storing “今天我很開心”, which means “Today I am very happy”. If in English, I can find the record by searching ‘happy’, but if in Chinese, I cannot find the record by searching ‘開心’. I would say this is a very typical use case to the Asian users as the characters may not be separated by space. Please help. Thanks in advance.
Hi Leung,
Yes, it is a challenge to do proper searching of Asian characters. I’m currently using Apple’s built-in lexical tokenizer to figure out the word breaks.
However, I think there was a bug in it because it was only being activated if the device’s language was set to zh_CN or zh_TW. Zh_CN I thought was Simplified Chinese and zh_TW was Traditional Chinese.
I’ve just changed it to look just for zh
, so that should resolve the problem for the next update no matter which variation of Chinese is being used.
With the lexical tokenizer, the phrase you provided is broken down into these separate words and indexed into the search engine with spaces in between:
今天,
我,
很,
開心
The last one is the one you were looking for.
So I think the next update will allow it to work properly for you.
It will have to rebuild the entire search index the first time you do any searches though, so it might take a little while to complete the first search.
Thanks,
Brendan
That is excellent news! Thanks a lot of your help and your very helpful and prompt assistance!
Hi Brendan, just want to see if you have added the fix into the latest version last week? Rgds.
Yes, this fix was added a while ago. Does it still not work for you?
Let me double check further and revert. Thanks for your prompt response as always Brendan.