How Can We Help?
You can configure WordPress to only search posts or custom post types having specific category or taxonomy assigned to them.
To configure this, just select the desired category or taxonomy in the Taxonomy Terms option of search form displayed in the Includes section as shown below.