I know how much praise Spotlight gets, but a search facility that doesn't return a full set of results is useless to me.
If somebody can provide a fix/workaround then that would be great, but it doesn't excuse it. A search, like the Mac, should "just work".
I just searched a folder of plain text (PHP) files for the word "function". 12 files were returned. I know for a fact there's 40+ files in that hierarchy (max 3 levels deep) with 'function' in. There's no reason for Spotlight to choose them and ignore the rest.
I copy the folder to my Home folder. No results returned on that one. I open up one of the files and save it. Still no results, even on the directly enclosing folder. I try that with BBEdit and skedit. Still no results. So, I go back to searching in my text-editor - it's slow but it does the job it's supposed to.
I don't care about the clever stuff - if it can't do the basics, what good is it?
Chris