MYSQL – Disabling FULLTEXT Search stopwords
Friday, January 15, 2010 0:38
To disable MySQL FULLTEXT Search stopwords open the mysql config file and below [mysqld] add the following line:
ft_stopword_file = “”
By setting the ft_stopword_file value to an empty string the usual stopwords won’t be ignored any more.
Here is what the manual says about setting a new stopwords file:
To override the default stopword list, set the ft_stopword_file system variable. (See Section 5.1.4, “Server System Variables”.) The variable value should be the path name 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.
The stopword list is free-form. That is, you may use any nonalphanumeric character such as newline, space, or comma to separate stopwords. Exceptions are the underscore character (“_”) and a single apostrophe (“’”) which are treated as part of a word. The character set of the stopword list is the server’s default character set; see Section 9.1.3.1, “Server Character Set and Collation”.
John says:
September 10th, 2010 at 03:02
hey, nice blog…really like it and added to bookmarks. keep up with good work