哦,我的FULLTEXT指数在哪里?

时间:2014-05-11 15:02:39

标签: mysql full-text-search

好吧,我已经完全准备好被告知这是愚蠢的事情。我有一张这样的桌子:

mysql> show create table node\G
*************************** 1. row ***************************
       Table: node
Create Table: CREATE TABLE `node` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `graph` varchar(100) CHARACTER SET latin1 DEFAULT NULL,
  `subject` varchar(200) NOT NULL,
  `predicate` varchar(200) NOT NULL,
  `object` mediumtext NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `nodeindex` (`graph`(20),`subject`(100),`predicate`(100),`object`(100)),
  KEY `ix_node_subject` (`subject`),
  KEY `ix_node_graph` (`graph`),
  KEY `ix_node_object` (`object`(255)),
  KEY `ix_node_predicate` (`predicate`),
  KEY `node_po` (`predicate`,`object`(130)),
  KEY `node_so` (`subject`,`object`(130)),
  KEY `node_sp` (`subject`,`predicate`(130)),
  FULLTEXT KEY `node_search` (`object`)
) ENGINE=MyISAM AUTO_INCREMENT=574161093 DEFAULT CHARSET=utf8
1 row in set (0.00 sec)

注意行FULLTEXT KEY node_search (对象)。当我尝试查询时

mysql> select count(*) from node where match(object) against ('Entrepreneur');

我收到错误

ERROR 1191 (HY000): Can't find FULLTEXT index matching the column list

咄?

更新

我尝试了一个没有用的分析表

mysql> analyze table node;
+------------------+---------+----------+----------+
| Table            | Op      | Msg_type | Msg_text |
+------------------+---------+----------+----------+
| xxxxxxxxxxx.node | analyze | status   | OK       |
+------------------+---------+----------+----------+
1 row in set (21 min 13.86 sec)

0 个答案:

没有答案