MySQL Forums
Forum List  »  Newbie

Advanced keyword search with keyword list in an array
Posted by: Raghavendra N
Date: March 04, 2015 09:08AM

Hi all,

I am implementing advanced search on a MySQL table.

I get the keywords in separate arrays:

allKeywords = []; //use all keywords from this array
exactKeyWords = []; //use exact phrase from this array
noKeywords = []; //Not operator

In my previous assignments I've used full-text searches like this:

SELECT * FROM report WHERE MATCH (title,toc,overview,meta_keywords)
AGAINST ('+surgical "growth rate" -operations' IN BOOLEAN MODE);

Now I need to pass the keywords in arrays. Can any one help how I turn the above query to accomodate array variables.

If you can site a tutorial or example that will also help me.

Thanks a lot,

Options: ReplyQuote


Subject
Written By
Posted
Advanced keyword search with keyword list in an array
March 04, 2015 09:08AM


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.