Search for notes in Spotlight and you get the Notes app, a dozen notes, some mail and a web suggestion. When you already know you want a file, or an app, you can say so.
Open Spotlight and press a number with Command. Apple calls these Browse Modes:
Command-1 Applications
Command-2 Files
Command-3 Actions
Command-4 Clipboard history
Command-2 is the one I’d use most. Type part of a file name and only files and folders come back, so a document called “budget” isn’t buried under a website and an app suggestion. Command-1 does the opposite: only apps, which is a quick way to browse everything installed when you can’t remember an app’s name.
You can also click the buttons next to the search field, and Apple notes that categories show up below the field while you type, such as Folders or System Settings, which you can click to filter further.
An example: Command-Space, Command-2, “invoice march”. Only the files, best match on top, Return to open or Command-R to see it in Finder.
Each mode only searches what Spotlight is allowed to show. If a category is switched off in Spotlight settings, or a folder sits in Search Privacy, the mode won’t bring it back. And the modes come from the current Spotlight; on an older macOS these shortcuts don’t exist.
Further reading: Narrow your search results in Spotlight on Mac (Apple), Spotlight keyboard shortcuts on Mac (Apple)