MySQL Forums
Forum List  »  Full-Text Search

Not Getting result as expected
Posted by: Manoj Amin
Date: November 21, 2010 01:39PM

I am not getting expected result as expected. When I search for "pink Panther" and I am getting result for pink and panther both. What I like to have is to have result with exact match "pink Panther" word first and then all matches with word "pink" and "panther". How do I do it ?.

Below is my current SQL.

SELECT *, MATCH(productid,description,details,Keyword) AGAINST ('pink,panther' IN BOOLEAN MODE) as rank
FROM tblProduct
WHERE (MATCH(productid,description,details,Keyword) AGAINST ('pink,panther' IN BOOLEAN MODE)) Order by Rank desc

Options: ReplyQuote

Written By
Not Getting result as expected
November 21, 2010 01:39PM
November 25, 2010 03:03PM

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.