【英文】聚焦搜索

Preface

Notes on MacOS Spotlight Search

Disable Spotlight service

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

Enable Spotlight service

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

Disable Spotlight indexing

1
sudo mdutil -a -i off

Enable (rebuild) Spotlight indexing

1
sudo mdutil -a -i on

Hide directories from Spotlight search indexing

  • Add the .noindex suffix to the directories you want to hide from Spotlight search indexing

Completion

References

CSDN - Please call me Xiaosi
Jianshu - Cabber
SPAI - The Philosopher Who Fixes Computers