Apps don't show up on Spotlight search [duplicate]

Anil (https://apple.stackexchange.com/users/40587/anil) answered in this question (Applications Don't Show Up in Spotlight). It worked for me on Sierra.

Here is his solution:


Turn off spotlight:

sudo mdutil -a -i off

Unload it:

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

Load It:

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

Turn on spotlight again:

sudo mdutil -a -i on