Innodb:查询多于1列时,找不到与列列表匹配的FULLTEXT索引 [英] Innodb: Can't find FULLTEXT index matching the column list when queried more than 1 columns

查看:97
本文介绍了Innodb:查询多于1列时,找不到与列列表匹配的FULLTEXT索引的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的MySQL INNODB表上运行一个非常简单的查询:

I'm trying to run a very simple query on my MySQL INNODB table:

SELECT * 
FROM items 
WHERE MATCH (item_title,item_description) AGAINST ('dog')

item_titleitem_description都具有FULLTEXT索引.

我不断收到此错误:

找不到与列列表匹配的FULLTEXT索引

Can't find FULLTEXT index matching the column list

我的问题:当我查询 just item_title just item_description时,它运行正常.但是,当我一次在一次查询中同时执行这两个操作时,就会收到该错误.

My issue: when I query just item_title or just item_description then it works fine. But when I do both at once in 1 query, as shown above, I get that error.

有什么想法吗?

推荐答案

您需要第三个索引:

FULLTEXT(item_title, item_description)

这篇关于Innodb:查询多于1列时,找不到与列列表匹配的FULLTEXT索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆