Spotlight disables itself
Spotlight has stopped working for me for a few weeks. I used to launch applications by hitting cmd-space followed by typing the app name, but apps and documents no longer appear in Spotlight. Checking System Preferences shows that all options(including Applications) for Spotlight are checked. I've tried the Apple Support suggestion of adding and then removing my hard disk from the list of folders not to search but that doesn't help.
When I checked "mdutil - s /" in Terminal, that shows that indexing was disabled. Re-enabling indexing via "mdutil -i on /" works in that Spotlight will start re-indexing my hard drive and find apps/documents as it did before. The next time that I login, though, Spotlight will stop working and using mdutil again shows that indexing has been disabled.
What's happening ? What is causing Spotlight indexing to spontaneously disable itself ? Yeah, I can manually restart Spotlight everytime I login but that's not the way it is supposed to work !
References:
https://support.apple.com/en-us/HT201716
MacBook Pro Retina