How to add a custom module to Global Search

Hey BrozTechnologies!

Thank you so much for your help. That is actually one of the article that I found and it was helpful for the modules that already existed. I was able to add the custom fields that I added (or edited) to the pre-existing modules using the method mentioned. However, none of the modules that I created from scratch are listed in the directory with the ones that were already there (/var/www/html/custom/Extension/modules/[MODULE_NAME]/Ext/Vardefs/ )

Instead, I was only able to find the following directories for the modules made from scratch:
/var/www/html/custom/modulebuilder/builds/
/var/www/html/custom/modulebuilder/packages/
/var/www/html/custom/modulebuilder/packages/[MODULE_NAME]/modules/[MODULE_NAME]
/var/www/html/custom/history/modulebuilder/packages/
/var/www/html/custom/history/varmodulebuilder/packages/[MODULE_NAME]/modules/[MODULE_NAME]

Do you know if there’s a way to have my custom modules added to the directory where the pre-installed modules exist? I edited the vardefs.php file for each of my custom modules (in each of the directories that I could find for them), but the changes didn’t apply.

I really appreciate your time! Thank you!