Spotlight problems
Sometimes the fix is less indexing, not more. Excluding the churn is legitimate maintenance.
System Settings → Siri & Spotlight → Spotlight Privacy → drag folders or volumes in. Effect is immediate; the index for those paths is dropped.
Good candidates: VM disk folders, build output trees, scratch/cache directories, cloned repos you never search, backup staging areas.
Indexing can be disabled per volume:
sudo mdutil -i off /Volumes/Scratch
And an external volume can carry a marker file that tells every Mac it meets not to index it:
sudo touch /Volumes/Scratch/.metadata_never_index
On modern macOS this flag file is respected for external volumes (it was historically honoured more broadly). It travels with the drive — useful for scratch disks and camera cards that should never cost an indexing pass on any machine they touch.
mdfind cannot see them either — same indexmdworker activity for that treefind and any independent index still see everything; exclusion is Spotlight-onlyExcluding a folder does not reclaim much disk (the index is compact) and does not speed searches dramatically unless the excluded tree was pathological. Its real value is stopping perpetual re-indexing of files that change constantly.
The Privacy pane is the truth for folders. For volumes:
mdutil -s -a
lists every volume's indexing state at once.
A marker file at a volume's root telling macOS not to index it — respected for external volumes and portable between Macs.
It stops re-indexing churn for busy folders, which helps when those folders change constantly. It is not a general speed-up.
Everywhere keeps track of every file on your Mac — including the folders Spotlight hides and drives you have unplugged. Free for a day, then $19 once.
Download for Mac