Does Spotlight index dotfiles (OS X Yosemite)?
Using the mdfind command which queries the Spotlight Database I have to say no because the tests I performed would indicate so.  In a Terminal using mdfind -name .bash_history as well as subsequent commands changing the .filename portion of the command, mdfind did not return the specific file names while only returning filenames that contained the .filename portion within where applicable.