使用索引名称语法进行MySQL全文搜索需要帮助吗?

时间:2017-09-14 20:02:12

标签: mysql full-text-search

尝试在modx数据库中的表上运行全文搜索,

这很好用:

SELECT * FROM modx_site_content WHERE 
MATCH (`pagetitle`, `longtitle`, `description`, `introtext`, `content`) 
AGAINST ('research' IN NATURAL LANGUAGE MODE)
LIMIT 10;

这给我一个未知的列错误:

SELECT id, pagetitle FROM modx_site_content WHERE
MATCH (`content_ft_idx`.`content`)  //nor does just (`content_ft_idx`)
AGAINST ('search' IN NATURAL LANGUAGE MODE)
LIMIT 10;

表索引create语句如下所示:

FULLTEXT INDEX `content_ft_idx` (`pagetitle`, `longtitle`, `description`, `introtext`, `content`)

如何仅对'modx_site_content'。'content'表进行全文搜索?或任何其他表格组合?

0 个答案:

没有答案