Type a word in Spotlight and you get everything: apps, mail, websites, files with that word buried on page forty. When I know what sort of thing I want, I’d rather tell Spotlight up front.
Start the search with kind: and the type of item. Apple’s guide lists words such as pdf, images, folder, email, presentation and app, most with a plural version too. Then type your search term after it.
kind:pdf invoice
That gives only PDFs that match “invoice”. Apple’s own example is kind:images New York City for photos of the city.
There are more keywords like this. Apple names author, title, name, tag, from, to and contains, among others. You type the keyword, a colon and the term, for example author:John or title:budget. Newer versions of Spotlight also have a quicker route: type / followed by the type, like /PDF, and press Return.
One caveat: these keywords only work on what Spotlight has indexed. A folder you excluded from Spotlight stays invisible, whatever keyword you use. My advice is to learn two of them, kind: and name:, because those already cut most result lists down to something you can scan.
Further reading: Narrow your search results in Spotlight on Mac