The deleted method calls $this->resourceConfiguration, which is never initialized in specific web services, so if we use the "display" parameter, the webservice returns an error
$string = preg_replace('/[._-]+/', '', $string);
Ex :
Product's name : Saint-leon
Search : leon => 0 result
------------------------------------------------------
$string = preg_replace('/[._-]+/', ' ', $string);
Ex :
Product's name : Saint-leon
Search : leon => 1 result
-------------------------------------------------------
I think that thus the search is more relevant