本文介绍了无法找到匹配列列表的FULLTEXT索引(已设置索引)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用fulltext,我执行了一个命令将全文索引添加到多个注释中,并且没有返回任何错误,于是我做了:
('品牌')反对('斯柯达');
品牌专栏中的内容 - 但我收到以下内容:
Eventho,当我表格看起来像这样:
pre $
FULLTEXT KEY`name`(`name`,`breadcrumb`,`description`,`brand` ,`价格`,`年``,`km`,`用法`,`类型`)
是否因为我应该使用名称
来代替?做搜索?或者可能会出错。
解决方案
假设您使用MyISAM引擎,执行:
ALTER TABLE产品ADD FULLTEXT(品牌);
全文索引应该包含与MATCH子句中提到的顺序完全相同的列数。
I'm working with fulltext, I executed an command to add the fulltext index to multiple comments, and returned no errors, then I did:
SELECT * FROM products WHERE MATCH(`brand`) AGAINST('Skoda');
Which is in the brand column - but I get following:
Eventho, when my table looks like this:
FULLTEXT KEY `name` (`name`,`breadcrumb`,`description`,`brand`,`price`,`year`,`km`,`usage`,`type`)
Is it because I should use the name
instead? to do the search? Or what can be wrong.
解决方案
Assuming you are using MyISAM engine, Execute:
ALTER TABLE products ADD FULLTEXT(brand);
The fulltext index should contain exactly the same number of columns, in same order as mentioned in MATCH clause.
这篇关于无法找到匹配列列表的FULLTEXT索引(已设置索引)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!