MySQL Forums
Forum List  »  Full-Text Search

Re: Logical OR and fulltext search
Posted by: Rick James
Date: March 08, 2013 12:27AM

(I don't know which will be better...)

Plan A:
WHERE
MATCH(...) AGAINST ('+apple' IN BOOLEAN MODE)
AND
( MATCH(...) AGAINST ('+imac' IN BOOLEAN MODE) OR
MATCH(...) AGAINST ('+iphone' IN BOOLEAN MODE) OR
MATCH(...) AGAINST ('+ipod' IN BOOLEAN MODE) )

Plan B:
WHERE
MATCH(...) AGAINST ('+apple imac iphone ipod' IN BOOLEAN MODE)
AND
( MATCH(...) AGAINST ('+imac' IN BOOLEAN MODE) OR
MATCH(...) AGAINST ('+iphone' IN BOOLEAN MODE) OR
MATCH(...) AGAINST ('+ipod' IN BOOLEAN MODE) )

Options: ReplyQuote


Subject
Views
Written By
Posted
3840
March 05, 2013 05:15AM
Re: Logical OR and fulltext search
1961
March 08, 2013 12:27AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.