views:

22

answers:

1

I am trying to build a product search for a jewelry store. I know that if a term is in over 50% of the entries then it has a weight of zero. So right now if I do a search for "diamond" I get no results because over 50% contain diamond. Is there a way to change that?

+1  A: 

Quoting the documentation of MySQL : 11.9.6. Fine-Tuning MySQL Full-Text Search

If you really need to search for such common words, it would be better to search using IN BOOLEAN MODE instead, which does not observe the 50% threshold.

See : 11.9.2. Boolean Full-Text Searches


The other solution seems to go with patching MySQL's source-code and recompiling -- which is probably not something you want to do...

Pascal MARTIN