An internal search bug?
Problem has been recordedIssue description
Under my test mode of yacs, the search engine hadn't return any found or not-found results whens searching for some Chinese words.Even more,the search engine won't work properly on this site (not my site) with serch term being "search".
I'm wondering why.
Comments
| Bernard from nearby-an-airport Associate, 6734 posts | Ok, one is trivial, the other is quite complex. You cannot search on the keyword 'search', because this is the label put by default in the search box, and YACS strip it before looking in the database. If you think this is a bug instead of a feature, we can just remove the default behavior. The other problem, related to search of Chinese words, is more complex, because of poor support of unicode in the database. At the moment, YACS transcodes every input from UTF-8 to Unicode before saving records in the database. Unfortunately, the punctuation characters introduced during transcoding are not compatible with the search facility provided by MySQL. There are two basic solutions to the last issue: 1- When the MySQL run-time fully supports UTF-8, save data natively in this format, without transcoding to Unicode. This solution would work at major ISPs, but probably not at weakest providers. 2- Integrate another search engine in YACS. For example, delegate search requests to Google, or to another search engine. This would work only for servers publicly accessible from the Internet. As you can see, we have already started to think about this issue, just because here in France we have accented characters that require UTF-8 native support... Thank you very much for your interest in YACS, and please do not hesitate to revert to us after you have tested to post pages in Chinese language. |
| Yexang 3 posts | Bernard: Thank you for your kind and quick reply. I determine to apply YACS, rather than drupal, code to my oncoming Chinese site, although its Chiese localization is empty. |
Rate this page
Posted by Yexang on June 7 2007, edited by Yexang on June 11 2007, (popular)