Categories and terms as results
Searching Categories, Tags and any other Taxonomy Terms and returning them as Results
Under the Search Sources -> Taxonomy Terms Search panel, choose the Taxonomies where you want to return the results from.
These options are to return taxonomy terms as results. If you want to search Post Types by categories please check the search by categories feature.