Reputation: 23999
I know:
WHERE MATCH(title,category) AGAINST ('text')
But what if I want to say 'text' cannot not be anywhere in title or category?
Many thanks
Darren
Upvotes: 0
Views: 343
Reputation: 605
You could try the following:
SELECT * FROM whatever WHERE MATCH (title,category) AGAINST ('-text' IN BOOLEAN MODE);
Upvotes: 1
Reputation: 795
Is there any problem with using WHERE NOT MATCH(title,category) AGAINST ('text')
?
Upvotes: 0
Reputation: 2165
Use "IN BOOLEAN MODE
" with the '-' specifier
WHERE MATCH (title,category) AGAINST ('-text' IN BOOLEAN MODE);
http://dev.mysql.com/doc/refman/5.0/en/fulltext-boolean.html
Upvotes: 2