虽然我在mysql表中有全文索引,但是当我执行搜索算法时会出现ERROR 1191

时间:2017-07-08 15:48:27

标签: mysql algorithm

当我执行搜索算法时,我收到此错误:ERROR 1191找不到与列列表匹配的FULLTEXT索引,尽管我在表中创建了具有相同列和顺序的FULLTEXT索引。

显示创建表:

FULLTEXT KEY `company_name`(`company_name`,`job_title`,`career_field`,`responsibility`)

搜索算法:

SELECT * ,Match(company_name) AGAINST ('$keyword') as company_rel, Match(job_title) AGAINST ('$keyword') as title_rel, Match(career_field) AGAINST ('$keyword') as career_rel, Match(responsibility) AGAINST ('$keyword') as responsibility_rel FROM job_post WHERE Match (company_name,job_title,career_field,responsibility) AGAINST ('$keyword') AND (career_field LIKE '%%') ORDER BY title_rel * 1.3 + responsibility_rel * 1.2 + career_rel * 1.1 + company_rel * 1 DESC Limit 0 , 20

我搜索了几个小时,尝试了一切,找不到解决方案,请帮忙。

0 个答案:

没有答案