SELECT *, MATCH(question,short_answer,long_answer) AGAINST('transmission impairment') AS Score
FROM questions
WHERE MATCH(question,short_answer,long_answer) AGAINST('transmission impairment')
ORDER BY score DESC;
答案 0 :(得分:0)
以下代码对我有用:
SELECT *, MATCH(long_answer) AGAINST('guided media') AS Score FROM questions WHERE id IN (SELECT id FROM questions WHERE MATCH(long_answer) AGAINST('guided media') UNION SELECT id FROM questions WHERE MATCH(question) AGAINST('guided media') ) ORDER BY score DESC
我仍然觉得这不是最佳解决方案