php SQL 错误:1191 - 找不到与列列表匹配的 FULLTEXT 索引
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18035795/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 16:50:37 来源:igfitidea点击:
SQL Error: 1191 - Can't find FULLTEXT index matching the column list
提问by user2649117
I'm trying to solve this error :
我正在尝试解决此错误:
1191 - Can't find FULLTEXT index matching the column list
1191 - 找不到与列列表匹配的 FULLTEXT 索引
Query:
询问:
SELECT t.*, t.username AS threadusername, u.username,
MATCH (t.subject) AGAINST ('test123 test') AS relevance
FROM 123test_threads t
LEFT JOIN 123test_users u ON (u.uid = t.uid)
WHERE t.fid='2' AND t.tid!='4' AND t.visible='1' AND t.closed NOT LIKE 'moved|%'
AND MATCH (t.subject) AGAINST ('test123 test') >= '2'
ORDER BY t.lastpost DESC LIMIT 0, 5
whene i try to create a new thread in my multiforums website.
当我尝试在我的 multiforums 网站上创建一个新线程时。
回答by Mihai
ALTER TABLE table ADD FULLTEXT index_name(column1);
Try this to add a full text index.
试试这个来添加全文索引。