我有全文搜索的问题。我有两张桌子:
歌曲
+------------+-----------------------+------------+-----------+
| id_canzone | canzone | id_artista | canzone |
+------------+-----------------------+------------+-----------+
| 107 | Can U Believe | 15 | I'm Sorry |
+------------+-----------------------+------------+-----------+
艺术家
+------------+---------+
| id_artista | artista |
+------------+---------+
| 15 | Akon |
+------------+---------+
如果我用全文搜索搜索艺术家,我没有问题。
SELECT *,MATCH(artista) AGAINST('Akon Can U Believe.' ) FROM artists
+------------+---------+------------------------------------------------+
| id_artista | artista | MATCH(artista) AGAINST('Akon Can U Believe.' ) |
+------------+---------+------------------------------------------------+
| 15 | Akon | 1.9237866401672363 |
+------------+---------+------------------------------------------------+
但是当我尝试使用歌曲表时
SELECT id_canzone,canzone,MATCH(canzone) AGAINST('Akon Can U Believe.' ) FROM songs
+------------+---------------+------------------------------------------------+
| id_canzone | canzone | MATCH(canzone) AGAINST('Akon Can U Believe.' ) |
+------------+---------------+------------------------------------------------+
| 104 | Can U Believe | 0 |
+------------+---------------+------------------------------------------------+
我已经减少了 ft min word len 参数,尝试重建索引。没变化。