Whenever I have to search for something, I have to open Safari and then type in it. Is there any way to search directly, like type it in Spotlight and press click something and Safari will open automatically and search whatever you typed in Spotlight?
Not sure if the feature exists for Spotlight.
However, Alfred is a replacement for Spotlight which does what you need and much more:
Add over 120 plugins to OS X's Spotlight search box. Check the weather, search the web, send an iMessage, find an emoji, and more.
For OS X Yosemite. Completely open-source. No crazy installer. Uninstall with one click.
Sample Google search using Flashlight plugin:
Type it in Spotlight, and hit ⌘B. (I found this by mistake!)
Spotlight can search your safari browsing history for webpages you have previously visited, and it can search wikipedia online for information, but without the above mentioned plugins you can't search google directly.