#1407
Grisha
Grisha
Участник

$find = str_replace($stopWords, ”, $this->mas_inbox[“s_text”]);
$find = str_replace(‘ ‘,’ +’,$this->mas_inbox[“s_text”]);

if ( sizeof($mas_words) )
{
// $db_query_stext .= ” and MATCH advert.name_adv AGAINST (‘%$find%’) + MATCH advert.text AGAINST (‘%$find%’) “;
$db_query_stext .= ” and MATCH (advert.text,advert.name_adv) AGAINST (‘+$find’ IN BOOLEAN MODE)”;
}
}

вот результат: string(106) ” and MATCH (advert.text,advert.name_adv) AGAINST (‘+посуточно +квартира’ IN BOOLEAN MODE)”