Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I just want to search files in my computer. If I want to search things in internet I will go to browser.
Uncheck "Spotlight Suggestions" under System Preferences > Spotlight
Farther up, there is also a "Bookmarks & History" that could be relevant.
(oh, and you might want to uncheck the "Allow Spotlight Suggestions in Look up" there below)