A custom Drupal module that allows an administrator to exclude bundles (aka Content Types) from the Search results.
- Download the module to your custom modules directory at
/web/modules/custom
. - Go to the Modules page at /admin/modules.
- In the module list, find the "Exclude Bundles" module, select its checkbox and click Install.
- Go to the module administration page at /admin/config/search/bundles and check the Content Types that you want to exlude from the search results.
- Click Save.
- Clear caches.
Search by Content Type in Drupal 8 - a custom module tutorial by Mike Purvis.