How can I make spotlight ignore certain file types and directories?
There is a way to exclude folders: add a .no_index extension to the file or folder name.

But my favourite one is adding a .metadata_never_index file to a folder. Use the following command:

$ cd DIRECTORY
$ touch .metadata_never_index