Bug #14037 | It seems MySQL doesn't use indexes with fulltext in boolen mode if I use OR | ||
---|---|---|---|
Submitted: | 14 Oct 2005 19:11 | Modified: | 25 Jan 2006 0:02 |
Reporter: | Wiktor Ihárosi | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S4 (Feature request) |
Version: | MySQL 4.1.11-Debian_4sarge2-log, mysql-5 | OS: | Linux (Linux, Windows) |
Assigned to: | Sergey Vojtovich | CPU Architecture: | Any |
[14 Oct 2005 19:11]
Wiktor Ihárosi
[14 Oct 2005 23:55]
MySQL Verification Team
mysql> EXPLAIN SELECT * -> FROM `content_langs` -> WHERE -> MATCH (lead) AGAINST ('alma' IN BOOLEAN MODE) -> OR -> MATCH (content) AGAINST ('alma' IN BOOLEAN MODE)\G *************************** 1. row *************************** id: 1 select_type: SIMPLE table: content_langs type: ALL possible_keys: NULL key: NULL key_len: NULL ref: NULL rows: 0 Extra: Using where 1 row in set (0.01 sec) mysql> mysql> EXPLAIN SELECT * -> FROM `content_langs` -> WHERE -> MATCH (lead) AGAINST ('alma' IN BOOLEAN MODE) -> AND -> MATCH (content) AGAINST ('alma' IN BOOLEAN MODE)\G *************************** 1. row *************************** id: 1 select_type: SIMPLE table: content_langs type: fulltext possible_keys: lead,content key: lead key_len: 0 ref: rows: 1 Extra: Using where 1 row in set (0.01 sec)
[13 Jan 2006 19:24]
Sergey Vojtovich
MySQL doesn't support "index merge" join method on fulltext indexes yet. Since it is rather complicated task it must go via WL and documented as known limitation.
[25 Jan 2006 0:02]
Jon Stephens
Thank you for your bug report. This issue has been addressed in the documentation. The updated documentation will appear on our website shortly, and will be included in the next release of the relevant product(s). Additional info: Updated Optimization chapterof 5.0/5.1 Manual as suggested by developer. Note that 4.1 doesn't support index_merge algorithm.