尝试在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'表进行全文搜索?或任何其他表格组合?