我想要与确切的“果阿产房”相关。它也会产生任何包含果阿的东西。
SELECT * FROM `app_search` WHERE MATCH (`keywords`) AGAINST
("production house in goa" in boolean mode)
order by MATCH (`keywords`) AGAINST ("production house in goa" in boolean mode)
desc, rank desc;
谢谢
答案 0 :(得分:0)
删除旧表并使用全文索引重新创建关键字并在下面的查询中解决该问题。
SELECT *, MATCH (`keywords`) AGAINST
('software development in florida'
IN BOOLEAN MODE) AS score
FROM `ftextsearch` WHERE MATCH (keywords) AGAINST
('software development in florid'
IN BOOLEAN MODE) order by score desc,rank desc
查询还返回得分中搜索的相关性。