Spotlight only working from the finder When I search from the finder spotlight is working as expected.

When pressing cmd+space and entering the same query I only get results from Safari's history.

Edit

The index is OK and the results are correct when searching with the Finder and with mdfind on the command line. Is only the spotlight window (cmd+space) that is not working.

Edit 2

Rebuilding the index does not change the behaviour 

Any hint on how could I solve the problem?
You have some or more items disabled in System Preferences / Spotlight, I was able to replicate your issue completely by turning off everything but Bookmarks &amp; History. Check the items you want searched and see if that shows documents and other things as well.