Global Search - Picking which fields and adding custom modules

Hi, We have turned off AOD as it 99% of the time show irrelevant results.

How the users use the system, the global search “basic” search works well. but we are having problems picking what modules and what fields it searches on.

In the global search setting, only about half our custom modules are shown as available to search on.

Also for the Cases module we have added a custom field, it is in the list view, so when preforming a search it is shown in the results, but it is not searchable.

So am looking for information on how to include custom modules in the global search and how to pick which fields are searched on.

Any help would be great.

Please take a look into this post. It might give you some clues:

1 Like

Hi,
I read your query and understand what you want and how your custom modules are shown in the global search. If you are curious to know which plugin is helpful for this task then use Global Search Manager(https://store.outrightcrm.com/product/suitecrm-faster-global-search/). It has the solution to every query that you have. Also, we can offer you 3 days trial when using this plugin.

Great, this has worked thanks for your help

1 Like

This is the updated link:

Solution from blog:

1. Add new file under the custom/Extension/modules/YOUR_MODULE/Ext/Vardefs/customGlobalSearchFields.php directory with the following contents:

<?php

$dictionary['YOUR_MODULE']['fields']['NAME_OF_FIELD_TO_SEARCH']['unified_search'] = true;

ex.

$dictionary['Account']['fields']['accounts_id_c']['unified_search'] = true;

2.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 :

<?php

$searchFields['YOUR_MODULE']['NAME_OF_FIELD_TO_SEARCH'] = array( 'query_type'=>'default');

For example :

If “$searchFields” array is already available then add below code only :

'accounts_id_c' =>

  array (

    'query_type' => 'default',

  ),