这是我的查询:
SELECT * FROM dictionary WHERE word = "hello";
-- returns:
+----+---------+---------------------------------+
| id | word | mean |
+----+---------+---------------------------------+
| 1 | hello | an expression of greeting; |
+----+---------+---------------------------------+
但是当我使用全文索引搜索时,它什么也不会返回:
SELECT * FROM dictionary WHERE MATCH(word) AGAINST("hello");
-- returns:
<0 row matched>
注意:使用IN BOOLEAN MODE
也没有用。
SELECT * FROM dictionary WHERE MATCH(word) AGAINST("+hello" IN BOOLEAN MODE);
-- returns:
<0 row matched>
为什么?而我该如何运作呢?