Site icon Hip-Hop Website Design and Development

How to search only by post title and category?

I’m currently working on my first theme (based on underscores) and just realized the search does not return any results if I input a category name, nor does it give accurate results when searching titles.

So, how do I make my theme search only “post titles” and “categories”? Should something be added to the Functions.php?

Thanks