Add search custom module

How can I add my custom module to my search?
thank you very much

Hi,
Are you asking about Global Search?

Yes, it’s the top search

Please go to Admin>>Advance Search and add the module which you want

I did not find my custom module here. . .

All the module should appear over here in “Admin>>Global Search” . To add your custom module please follow this guide explained in the post

https://suitecrm.com/suitecrm/forum/suitecrm-7-0-discussion/2170-module-missing-in-global-search-s-module-selection#9111

I read this post carefully.
There is indeed a problem with the subject. When searching, the keywords are not searched, but all the items in the module are displayed.

This method has failed.
I don’t know if there is any other way. Thank you very much.

the last options is to Join me via skype. I can take a look with you if it make sense. Because this saves time and effort and i can check the things instantly.

sohaib.majeed44

1 Like

Hi dear

Now I faced exactly the same problem as @copyyour2019
Did you manage to achieve the result?

Thanks

so thank @suitecrm_developer
He help me find fix
Fixed if go to custom/modules/my_module/metadata/SearchFields.php
and little change code to
‘name’ =>
array (
’force_unifiedsearch’=>true,
‘query_type’ => ‘default’,

),

1 Like

Hi, @suitecrm_developer and all

I have added those two lines still I can not see the custom module name under Admin → Search Settings.

What am I missing? :thinking: Added the below code:

'name' => 
  array (
    'query_type' => 'default',
    'force_unifiedsearch'=>true,
  ),

Also, I did QR&R. :melting_face: :melting_face:


I think that I need to do this in the verdefs of custom module

$dictionary[‘custom_module’][‘fields’][‘name’][‘unified_search’]=true;

@pgr do we need to do this for custom module to work for basic search?

No, that only applies to advanced search.

And even there, normally there is no need to reindex manually; that is just a way to reset the index when something goes wrong.

Thank you! I am still trying to figure out why basic search is not working for the custom module.

Anyone knows where to look at? :melting_face: :melting_face: :thinking: