Skip to content

Instantly share code, notes, and snippets.

@siberex
Last active July 14, 2025 22:47
Show Gist options
  • Select an option

  • Save siberex/10473e3a8f657dd57f3d9b21f9e93fd0 to your computer and use it in GitHub Desktop.

Select an option

Save siberex/10473e3a8f657dd57f3d9b21f9e93fd0 to your computer and use it in GitHub Desktop.
MacOS Spotlight issues

sudo killal mds sudo killall -9 mds

mdutil

# Turn indexing off and on
sudo mdutil -i off /
sudo mdutil -i on /

# Erase and rebuild index
sudo mdutil -E /

# Status
sudo mdutil -s /
# If you get "Spotlight server is disabled." -> see below ↓

Spotlight server is disabled

sudo mddiagnose

/usr/bin/find / -name .metadata_never_index -maxdepth 1
/usr/bin/find /System/Volumes/Data -name .metadata_never_index -maxdepth 1
/usr/bin/find /Volumes -name .metadata_never_index -maxdepth 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment