Bug #35928 | Commenting/uncommenting ft_stopword_file causes myisam index corruption | ||
---|---|---|---|
Submitted: | 9 Apr 2008 9:36 | Modified: | 9 Apr 2008 21:51 |
Reporter: | Colin Smith | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: FULLTEXT search | Severity: | S3 (Non-critical) |
Version: | 5.0.51a | OS: | Linux (Debian) |
Assigned to: | CPU Architecture: | Any | |
Tags: | corruption, ft_stopword_file, myi |
[9 Apr 2008 9:36]
Colin Smith
[9 Apr 2008 21:52]
Sveta Smirnova
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://dev.mysql.com/doc/ and the instructions on how to report a bug at http://bugs.mysql.com/how-to-report.php According to http://dev.mysql.com/doc/refman/5.0/en/fulltext-fine-tuning.html: To override the default stopword list, set the ft_stopword_file system variable. (See Section 5.1.3, “System Variables”.) The variable value should be the pathname of the file containing the stopword list, or the empty string to disable stopword filtering. After changing the value of this variable or the contents of the stopword file, restart the server and rebuild your FULLTEXT indexes.
[11 Apr 2008 13:22]
Sergei Golubchik
This is also the expected result. When you create a fulltext index with your ft_stopword_file, the index won't contain words from the stopword list (it's only contain two words "little" and "lamb" in your example). Then you disable the list, and restart the server. Now when you try to access the table the server notices that (in your example) the index must've contained three words ("Mary", "little", "lamb"), but it only contains two - that is the index is corrupted.