关闭与开启spotlight
sudo launchctl unload -w /System/Library/LaunchAgents/com.apple.Spotlight.plist
sudo launchctl load -w /System/Library/LaunchAgents/com.apple.Spotlight.plist
关闭与开启mds
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
关闭索引
sudo mdutil -i off /
删除索引
sudo mdutil -E /
重建索引
sudo mdutil -i on /