Wortteil-Suche in Drupal (search.module)

In Modules/Search/search.module folgendes tun:

 

1. Zeile

$query2 = substr(str_repeat("i.word = '%s' OR ", count($arguments2)), 0, -4);

 

ersetzen mit

$query2 = substr(str_repeat("i.word like '%%%s%%' OR ", count($arguments2)), 0, -4);

 

 
2. Zeile

return array("d.data ". ($not ? 'NOT ' : '') ."LIKE '%% %s %%'", $count);

 

ersetzen mit

return array("d.data ". ($not ? 'NOT ' : '') ."LIKE '%%%s%%'", $count);

 

 
Danach cron.php aufrufen damit der Suchindex neu aufgebaut wird.

 

Quelle: http://www.drupalcenter.de/node/13331#comment-50763

 

Tags: Drupal CMS Wortteil Teil eines Wortes suchen