I have been relying on MySQL’s Full-Text search index for sometime.
Recently a user ran into a black hole in that feature.
He wanted to find records containing a simple phrase, “thank you”.
But, the search resulted in no records found.
You see, “thank” and “you” are stop words in the default full-text index. Meaning they are discarded or given no relevance in the search results.
After some digging, I discovered that others have run into this same limitation and opted to remove the default stop word list.
Quick fix? Not quite.
Removing the stop word list, forces you to rebuild the index. Which on my modestly sized database meant 30 minutes of downtime on that table.
Fair enough. I performed that over the weekend.
Fast forward a couple days. Guess what happens now?
Other users are getting less than stellar search results - of course. Seemed a fair trade off at the time, between the two extremes.
I could keep tuning the stop words and narrowing the gap between the two extremes, but tuning mysql full-text index takes far too long because of the table locking required to rebuild the index.
So I am moving on to external search indexers, like Sphinx. Which can rebuild the entire index in a few minutes without requiring the downtime for the users.

23 responses so far ↓
1 Warren Smith // Apr 03, 2008 at 10:34 PM
2 Lon // May 19, 2008 at 08:19 PM
3 ygpfhdmn // May 07, 2009 at 03:39 AM
4 testosterone // May 09, 2009 at 05:09 AM
5 neoclassicism // May 09, 2009 at 09:01 AM
6 zrcyadis // May 10, 2009 at 09:49 AM
7 arllrpee // May 11, 2009 at 11:19 AM
8 deepen // May 13, 2009 at 04:41 AM
9 anaseism // May 13, 2009 at 07:44 AM
10 seroxat // May 13, 2009 at 11:45 AM
11 class // May 13, 2009 at 03:31 PM
12 iodosobenzene // May 13, 2009 at 06:40 PM
13 buy soma online // May 14, 2009 at 02:03 PM
14 generic vicodin expressless prediastole // May 15, 2009 at 11:56 AM
15 generic finasteride // May 15, 2009 at 03:56 PM
16 buy xanax online demodulation wulfenite // May 15, 2009 at 09:19 PM
17 faggot // May 16, 2009 at 03:05 AM
18 agcfklxj // May 16, 2009 at 05:29 PM
19 glopdpqb // May 17, 2009 at 05:45 AM
20 parodontome // May 18, 2009 at 07:58 AM
21 salpingoperitonitis // May 19, 2009 at 08:33 AM
22 productive // May 19, 2009 at 12:23 PM
23 dimethylarsine // May 20, 2009 at 03:46 PM
Leave a Comment