As posted a few weeks back on this blog, we’ve added support from the UI to add custom modules into the global search in Sugar 6.2. But one other problem people have seen, as posted in this forums post, is that if you add custom fields to a module those are not able to be added to the global search thru the UI. But there is a way to do this thru some custom coding, as we’ll see here below.
The key to making this happen is to set the ‘unified_search’ parameter for the field. To do this, add new file under the custom/Extension/modules/YOUR_MODULE/Ext/Vardefs/customGlobalSearchFields.php directory with the following contents:
Then, you need to add a search definition for the file, which you can specify in the custom/modules/YOUR_MODULE/metadata/SearchFields.php file as shown below
Then do a quick rebuild and repair, and the field should now be available to be searched thru the global search.