Spotlight disabled - and Indexing and searching disabled - solution
Solution found on web - below with 2 elements:
1) Need to remove files that block for indexing
2) Turn on indexing - Thanks to Patrick Kinsella
1) Check your root directory for a file called .metadata neverindex
If it's there, delete it.
You can only find it after making invisible files visible (se below)
2) These great hints won’t work if Spotlight is completely disabled (which some people have tried and don’t know how to reverse). If all else fails, follow this procedure:
Make hidden files visible (copy and paste the next line into Terminal: defaults write com.apple.finder AppleShowAllFiles -bool YES
!!!You need to know that the visible/invisible switch works only after a relaunch of Finder (via Command-Alt-Esc).
Now in (previously hidden) /etc folder in your root/hard drive, find hostconfig, and open it with any text editor. Does it include this line: SPOTLIGHT=-YES- (note the two dashes astride YES)? If not, type this line at the bottom. Save the file as hostconfig in your root folder (etc folder won’t accept it from a text editor). Now drag and drop this new hostconfig to /etc. This requires your admin password to replace the existing hostconfig.
Reboot, and your spotlight is working. This may be a long way around, but it worked for me.
Now make invisibles invisible again with this line in Terminal: defaults write com.apple.finder AppleShowAllFiles -bool NO
To fire up Spotlight, you may need to type this into Terminal: sudo mdutil -i on / (the slash is important)
If Mail is still not searching inside Entire Message, type this into Terminal to index your old messages: sudo mdimport /users/YOURNAME/library/mail [or whatever the path to your mailbox message folders.
The combination of these two did the trick for me.
All 10.5.2, Mac OS X (10.5.2)