Items name gone in searchindex after reindexing

Postdate: March 26 2014
Category: Created Modules
Applies to: 2.x

After reindexing via the search module the search doesn't find any words from the field item->name.

This is because it is missing in the SearchReindex function in modulename.module.php.

To add the standard field item->name again edit your main module file: modulename.module.php and find the function SearchReindex() and then the line that says: $text = "";

 Change it to:

$text = $row["name"];


There still is a bug in the module when deleting an item! The item isn't deleted from the searchindex table. I haven't found a solution yet except reindexing the whole website.