SugarCRM 7 - Fix to re-enable ElasticSearch on custom modules
Thu 18 September 2014

I had an issue in Sugar where some custom modules refused to appear in the Global Search settings, meaning I couldn't index them in ElasticSearch.
When I checked the module oddly enough unified search would be enabled in this file:
modules/<YourCustomModule>/vardefs.php
1. Re-enable the module
To force it to be re-enabled update/create this file
custom/Extension/modules/<YourCustomModule>/Ext/Vardefs/vardefs.php
and add this setting.
$dictionary['<YourCustomModule>']['unified_search'] = true;
2. Re-enable a field
You'll also need a field using the unified index before SugarCRM will pick up the unified_search setting. So under:
custom/Extension/modules/<YourCustomModule>/Ext/Vardefs/sugarfield_name.php
Enable unfied_search as a setting.
$dictionary['<YourCustomModule>']['fields']['name']['unified_search']=true;
After a quick repair/rebuild. My module appears in the Global Search Settings and I can poll it as normal through ElasticSearch.
Category: SugarCRM Tagged: elasticSearch sugarcrm