Salut!
je suis en train de creer un site pour le taff et j'en suis au moteur de recherche.
apparement quand je lance une requete, il me dis que je n'ai pas d'index FULLTEXT alors que je l'ai bien créé.
Code :
- mysql> show index from forms;
- +-------+------------+------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+
- | Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment |
- +-------+------------+------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+
- | forms | 0 | PRIMARY | 1 | id | A | 18 | NULL | NULL | | BTREE | NULL |
- | forms | 1 | index_text | 1 | subject | NULL | NULL | NULL | NULL | YES | FULLTEXT | NULL |
- | forms | 1 | index_text | 2 | Content | NULL | NULL | NULL | NULL | YES | FULLTEXT | NULL |
- | forms | 1 | index_text | 3 | En_post | NULL | NULL | NULL | NULL | YES | FULLTEXT | NULL |
- | forms | 1 | index_text | 4 | De_post | NULL | NULL | NULL | NULL | YES | FULLTEXT | NULL |
- | forms | 1 | index_text | 5 | Fr_post | NULL | NULL | NULL | NULL | YES | FULLTEXT | NULL |
- | forms | 1 | index_text | 6 | Es_post | NULL | NULL | NULL | NULL | YES | FULLTEXT | NULL |
- | forms | 1 | index_text | 7 | Ru_post | NULL | NULL | NULL | NULL | YES | FULLTEXT | NULL |
- +-------+------------+------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+
- 8 rows in set (0.00 sec)
- mysql> SELECT * FROM forms WHERE MATCH (Content) AGAINST ('test');
- ERROR 1191 (HY000): Can't find FULLTEXT index matching the column list
|
et la structure de cette table :
Code :
- mysql> desc forms;
- +--------------+--------------+------+-----+---------------------+----------------+
- | Field | Type | Null | Key | Default | Extra |
- +--------------+--------------+------+-----+---------------------+----------------+
- | id | int(255) | NO | PRI | NULL | auto_increment |
- | subject | varchar(255) | YES | MUL | NULL | |
- | insert_date | datetime | YES | | 0000-00-00 00:00:00 | |
- | canpost | tinyint(4) | YES | | NULL | |
- | En_post | text | YES | | NULL | |
- | De_post | text | YES | | NULL | |
- | Fr_post | text | YES | | NULL | |
- | Es_post | text | YES | | NULL | |
- | Ru_post | text | YES | | NULL | |
- | En_poster_id | int(11) | YES | | NULL | |
- | Fr_poster_id | int(11) | YES | | NULL | |
- | De_poster_id | int(11) | YES | | NULL | |
- | Es_poster_id | int(11) | YES | | NULL | |
- | Ru_poster_id | int(11) | YES | | NULL | |
- | En_postdate | datetime | YES | | 0000-00-00 00:00:00 | |
- | Fr_postdate | datetime | YES | | 0000-00-00 00:00:00 | |
- | De_postdate | datetime | YES | | 0000-00-00 00:00:00 | |
- | Es_postdate | datetime | YES | | 0000-00-00 00:00:00 | |
- | Ru_postdate | datetime | YES | | 0000-00-00 00:00:00 | |
- | En_link | varchar(255) | YES | | NULL | |
- | Fr_link | varchar(255) | YES | | NULL | |
- | De_link | varchar(255) | YES | | NULL | |
- | Es_link | varchar(255) | YES | | NULL | |
- | Ru_link | varchar(255) | YES | | NULL | |
- | Content | text | YES | | NULL | |
- | Category | smallint(8) | YES | | NULL | |
- | Subcategory | smallint(8) | YES | | NULL | |
- | En_posted | tinyint(4) | YES | | NULL | |
- | De_posted | tinyint(4) | YES | | NULL | |
- | Fr_posted | tinyint(4) | YES | | NULL | |
- | Es_posted | tinyint(4) | YES | | NULL | |
- | Ru_posted | tinyint(4) | YES | | NULL | |
- | game | smallint(10) | YES | | 0 | |
- +--------------+--------------+------+-----+---------------------+----------------+
- 33 rows in set (0.01 sec)
|
voilà, je sais pas trop comment résoudre ce soucis, alors si vous avez une idée je suis tout ouie
merci