I'm trying to set up a text search for a webapp. My mysql query is the following:
SELECT * FROM t1 WHERE MATCH (c1,c2,c3) AGAINST (:keyStr IN BOOLEAN MODE)
I want all words in :keyStr to be matched, so keyStr looks like:
:keyStr='+word[0]* +word[1]* +word[2]* + ... +word[n]*'
If any word[x] is a stopword or less than the min word length the query returns a null. I think the best solution is to remove the '+' from a stopword or remove the stopword entirely from :keyStr.
Is there any good ways to do this? Do I need to check if any word[x] is in stopwords_list before the query is made?