且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

处理MySQL全文特殊字符

更新时间:2023-09-09 19:13:58

There's no way to do this in nicely using MySQL's full text search. What you're doing (substituting special characters with a pre-defined string) is the only way to do it.

You may wish to consider using Sphinx Search instead. It apparently supports escaping special characters, and by all reports is significantly faster than the default full text search.