"MySQL" full-text index match multi-column error

Source: Internet
Author: User

The table structure is as follows:

CREATE TABLE ' T ' (   ..... KEY ' Title_fc ' (' Titleindex '),   KEY ' Shortname_fc ' (' Shortnameindex ')) ENGINE=InnoDB auto_increment=50962041DEFAULT CHARSET= 

Two full-text indexes were created, but the following error occurred while searching.

Mysql> SELECT Count(1) as Count  fromT AWHERE 1 = 1   andMATCH (A.titleindex) against ('"5YeM 5Yqo"' inchBOOLEAN MODE);+-------+| Count |+-------+|     - |+-------+1Rowinch Set(0.01sec) MySQL> SELECT Count(1) as Count  fromT AWHERE 1 = 1   andMATCH (A.shortnameindex) against ('"5YeM 5Yqo"' inchBOOLEAN MODE);+-------+| Count |+-------+|     6 |+-------+1Rowinch Set(0.00sec) MySQL> SELECT Count(1) as Count  fromT AWHERE 1 = 1   andMATCH (A.shortnameindex, A.titleindex) against ('"5YeM 5Yqo"' inchBOOLEAN MODE); ERROR1191(HY000): Can't find fulltext index matching the column list

Single match a column can be queried normally, but match multiple columns will be an error.

It was later found on the MySQL document: the match () column list must match exactly the column list in some Fulltext index definition for the table , unless this MATCH () was in BOOLEAN MODE on a MyISAM table.

"MySQL" full-text index match multiple columns error

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.