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?