Upto now I have been using
WHERE col REGEXP 'IN (.*) WE TRUST'
But ever since adding the full index search to this column then this query is very slow.
I'm waning to know know how I could implement a wildcard search using full text index searches.
These are two queries that I have been playing with but still Im getting lots of results that is unexpected and not sure at all why my query is pulling those results.
WHERE MATCH (markIdentification) AGAINST ('IN (.*) WE TRUST')
WHERE MATCH (markIdentification) AGAINST ('+IN (.*) +WE +TRUST')
WHERE MATCH (markIdentification) AGAINST ('+IN * +WE +TRUST')
These are the only ones that seem to get even close. Any suggestions?
Thank you
Update for question ref:
SELECT * from table
WHERE MATCH (col) AGAINST ('+IN * +WE +TRUST')
AND col LIKE '%IN (.*) WE TRUST%'
Is this correct? If not then how would you do it?