mysql全文搜索中的前缀和后缀通配符

Mar*_*ius 5 mysql full-text-search

我的客户坚持在字符串的任何部分搜索多个列.所以我想这样做:

... MATCH(smth, smth2) AGAINST('*string*' IN BOOLEAN MODE)
Run Code Online (Sandbox Code Playgroud)

索引或快速搜索不是必需的,所以即使MATCH .. AGAINST不使用索引 - 它也没关系.但问题是前缀通配符不起作用 - 只有单词后面的那个:

*string* - will match the same as string* and *string does not match anything
Run Code Online (Sandbox Code Playgroud)

有没有办法用MYSQL解决这个问题?我真的不打算安装任何索引服务或类似的东西,因此查询速度很慢.

我可以尝试以某种方式在多列上使用LIKE,但我想这会更慢.

Ama*_*wal 4

Mysql 全文搜索不允许我们使用 * 作为匹配搜索的前缀。

检查一下以供参考:

http://dev.mysql.com/doc/refman/4.1/en/fulltext-boolean.html