Apple Notes search broken after Migration Assistant? force a reindex
Apple Notes search finds (almost) nothing after moving to a new Mac with Migration Assistant. The notes are all still there, the search index just never got rebuilt. Force a reindex:
osascript -e 'tell application "Notes" to quit' pkill -f com.apple.Notes.SpotlightIndexExtension cd ~/Library/Group\ Containers/group.com.apple.notes mkdir -p ~/notes-indexstate-backup cp -p NotesIndexerState-Modern NotesIndexerState-HTML HTML.index-progress ~/notes-indexstate-backup/ plutil -replace NeedsReindexing -bool true NotesIndexerState-Modern plutil -replace NeedsReindexing -bool true NotesIndexerState-HTML open -a Notes
Notes reindexes everything on launch, takes about a minute. Done when this shows "NeedsReindexing" => false and an empty ObjectIDURIs list again:
plutil -p ~/Library/Group\ Containers/group.com.apple.notes/NotesIndexerState-Modern
- Your terminal needs Full Disk Access (System Settings > Privacy & Security).
- Only touches the index state, not your notes.
- Tested on macOS 27.2.1.
This post was written with the help of Claude, Anthropic’s AI assistant.