0

在 Mysql MATCH AGAINST 中,我怎样才能得到只搜索单词的最后一部分的结果?我将 Booblean 类型与 * 运算符一起使用。通过这种方式,我在输入所有单词或仅键入单词的开头时会得到正确的结果,但如果我仅键入单词的结尾则不会。

例子:

MATCH(product, tags) AGAINST(:terms'*' IN BOOLEAN MODE)
Searching with Brother word i get all the Brother products
Searching with Broth word i get all the Brother products
Searching with 'other' word i get no products

我怎样才能得到最后一个搜索词(其他)的结果?

谢谢你的帮助。

4

0 回答 0