Fulltext match() against() returning empty set

女生的网名这么多〃 提交于 2019-12-12 22:23:17

问题


I have a full text indexed table set up with the data Family in it. There is no White Space and the spelling is correct. How can I make this query match results as score and display them by score in DESC order? I keep getting empty set and don't know why.

 SELECT *, MATCH(MEDIA_TITLE) AGAINST('Family') AS SCORE FROM MEDIA_DATA_VIDS WHERE MATCH(MEDIA_TITLE) AGAINST('Family') ORDER BY SCORE DESC ;

Any Help is Greatly Appreciated.


回答1:


See 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.

So you need to search for a different word. But don't pick another stop word.



来源:https://stackoverflow.com/questions/49072765/fulltext-match-against-returning-empty-set

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!