An upgrade-safe way of adding a custom module to Global Search.
Open the file(or create): custom/Extension/modules/CUSTOM_MODULE/Ext/Vardefs/vardefs.php
Append the file with these lines:
$dictionary['CUSTOM_MODULE']['unified_search'] = true;
$dictionary['CUSTOM_MODULE']['unified_search_default_enabled'] = true;
$dictionary['CUSTOM_MODULE']['fields']['NAME_OF_FIELD_TO_SEARCH']['unified_search'] = true;
Run a Quick Repair & Rebuild
Advertisement