On WordPress you can filter searches when accessing the URL with an additional parameter on the end for example;
https://www.your-website.com/?s=search-query&post_type=custom_post_type_name
If you are accessing this URL from a search box / form on your website, add in the following hidden field;
<input type="hidden" name="post_type" value="post type name" />