php - Full text search to match multiple words in a string mysql -
i using fulltext search search query. when search 2 words want exact 2 words match results. here problem getting 1 word match results also. data contains polish language characters. code is
$qry="select * tbl_jobs match(job_title) against('+młodszy +konsultant' in boolean mode)";
i getting results as
1. [job_title] => młodszy konsultant ds. sprzedaży 2. [job_title] => młodszy konsultant 3. [job_title] => konsultant ds. sprzedaży młodszy 4. [job_title] => telefoniczny konsultant
i have following indexes
here first 3 results correct 4th result wrong. job_title contains 1 matching word results. want 2 search words mandatory results set. query correct using utf8_general. exact problem please me
if have 2 words abc
, xyz
match , want match both can use wildcard %
match regular expression matching
select * mytable job_title '%abc%xyz%' or job_title '%abc%xyz%'
it give records job title contains both words abc
, xyz
Comments
Post a Comment