InnoDB the defects of the full-text indexing stop word (stopwords) design

Source: Internet
Author: User

The full-text index fulltext was first used on the InnoDB engine, and recently found a flaw in the design of the Stop Word (stopwords) in the research process.


What is a stop word? It means that you do not want users to search for the "master Li Hongzhi", "Falun Dafa" and other words, need to define the stop words in advance, so it will not be searched. But the flaw in design is that you have to define it beforehand, and if you want to define the stop word ' living organ ' again in the future, you have to rebuild the full-text index, which is quite time-consuming if the table is large.


Let's look at the example below:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/26/ED/wKiom1NvF_uB4QbJAAEmgXqodfA422.jpg "style=" float: none; "title=" 1.jpg "alt=" Wkiom1nvf_ub4qbjaaemgxqodfa422.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/26/ED/wKioL1NvF9DQLImmAAJFAPzBHYk236.jpg "style=" float: none; "title=" 2.jpg "alt=" Wkiol1nvf9dqlimmaajfapzbhyk236.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/26/ED/wKiom1NvF_vB-FptAAGBjuyN3H8363.jpg "style=" float: none; "title=" 3.jpg "alt=" Wkiom1nvf_vb-fptaagbjuyn3h8363.jpg "/>

Conclusion: Both official MySQL5.6.16 and MariaDB10.0.10 have this flaw and hope that in later versions, adjustments can be made.



This article is from the "Spring Yang Technical column" blog, please be sure to keep this source http://hcymysql.blog.51cto.com/5223301/1409412

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.