Hello, how could I add a search input that would only search the listing category names?

To give an example, my directory is for local services; someone would search for 'plumber' and I'd like the results to show every listing in the 'plumbers' category, preferably sorted by rating. Can you help? Thank you.