Spotlight problems
When one folder's results are wrong, rebuilding the whole disk is a sledgehammer. There is a scalpel.
mdimport ~/Documents/Projects
Re-imports everything under that path — seconds to minutes for a folder, versus hours for a volume. No sudo needed for your own files.
Before and after, ask what Spotlight knows about a specific file:
mdls ~/Documents/Projects/report.pdf
mdls prints every indexed attribute. A file that is truly missing from the index prints nothing useful — the clearest possible before/after test.
If one file type is the problem (some app's documents stopped being searchable):
mdimport -t -d2 ~/Documents/sample.thatformat 2>&1 | head -30
-t -d2 shows which importer plugin claimed the file and the attributes it extracted — or reveals that none did, which means the app's importer is missing or broken. Reinstalling the app usually restores its importer; then re-import the affected folders.
After installing or updating apps whose importers seem ignored:
mdimport -r /Library/Spotlight/SomeImporter.mdimporter
or list all importers macOS knows:
mdimport -L
If targeted re-imports keep failing across many folders, the store itself is damaged — that is the case the full rebuild (sudo mdutil -E /) exists for. Try the folder-level fix first; most 'Spotlight is broken' reports are one path, not the whole index.
mdimport /path/to/folder re-imports it in seconds. mdls on a file confirms the result.
mdimport -L lists every importer plugin macOS is using.
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