MySQL Forums
Forum List  »  Full-Text Search

Re: full text query on lookup table
Posted by: Rick James
Date: August 07, 2010 12:09PM

FULLTEXT is not useful here.

To find books about cats or dogs...
SELECT b.title
   FROM books b
   JOIN types t  ON b.Category = t.Type
   WHERE t.Keyword IN ('Cat', 'Dog');

Hmmm... This is probably not what you are asking. And maybe the schema is not right.

Please rephrase your question, more along the non-db lines, like "find books about cats or dogs".

The problem is that you might have an Animal book that talks only about snakes. Your schema cannot distinguish this case; any query will find all the Animal books even when asking only for Cats and Dogs.

Options: ReplyQuote


Subject
Views
Written By
Posted
6684
August 05, 2010 01:46AM
Re: full text query on lookup table
2341
August 07, 2010 12:09PM
2234
August 11, 2010 01:52AM
2086
August 11, 2010 01:56AM
2398
August 12, 2010 07:46AM


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.