i have the next code
if(isset($_GET['f_search'])){
$s_str = trim($_GET['f_search']);
if(strlen($s_str) >= 3){
$query->set('s', $s_str );
}
}
This already work for search exact word, but if i want search example: 'Soccer' or 'Soccer-fine', i get different results, i want use operator LIKE for give me similar results but i dont know how use it, maybe
$query->set('s', 'LIKE', $s_str );
or something like that.
I use this in pre_get_posts of the archive page.
Thanks for the help, regards.