全文匹配()反对()返回空集
Fulltext match() against() returning empty set
我有一个全文索引table,其中包含数据系列。没有WhiteSpace,拼写正确。如何将此查询匹配结果作为分数并按分数按 DESC 顺序显示?我总是得到空集,不知道为什么。
SELECT *, MATCH(MEDIA_TITLE) AGAINST('Family') AS SCORE FROM MEDIA_DATA_VIDS WHERE MATCH(MEDIA_TITLE) AGAINST('Family') ORDER BY SCORE DESC ;
非常感谢任何帮助。
参见https://dev.mysql.com/doc/refman/5.7/en/fulltext-natural-language.html:
The search result is empty because the word “MySQL” is present in at least 50% of the rows, and so is effectively treated as a stopword.
所以您需要搜索其他词。但不要选择其他停用词。
我有一个全文索引table,其中包含数据系列。没有WhiteSpace,拼写正确。如何将此查询匹配结果作为分数并按分数按 DESC 顺序显示?我总是得到空集,不知道为什么。
SELECT *, MATCH(MEDIA_TITLE) AGAINST('Family') AS SCORE FROM MEDIA_DATA_VIDS WHERE MATCH(MEDIA_TITLE) AGAINST('Family') ORDER BY SCORE DESC ;
非常感谢任何帮助。
参见https://dev.mysql.com/doc/refman/5.7/en/fulltext-natural-language.html:
The search result is empty because the word “MySQL” is present in at least 50% of the rows, and so is effectively treated as a stopword.
所以您需要搜索其他词。但不要选择其他停用词。