Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have a column with a fulltext index, and are matching '' against the column in boolean mode. We know there are records where this column contains the value '', but the query is returning no records.

We have not modified any MySQL configuration directives pertaining to fulltext indexes. I believe the default minimum word length for fulltext indexes is 3 or 4 (certainly less than 7), so this query should still return at least one record.

Is there something else we're missing? Any help is appreciated!

share|improve this question
up vote 1 down vote accepted

I ended up asking a DBA, and he said that the comma is recognized as a word separator in MySQL. So, that meant that it was looking for "asp" and "net", both of which are under the 4 character minimum for words to be included in a fulltext index. I added the configuration directive ft_min_word_len=3 to my.cnf, restarted mysqld, and rebuilt the fulltext index on the table. Using MATCH(column-name) AGAINST ('+asp +net' IN BOOLEAN MODE); now locates the proper records.

Thanks everyone for your help!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.