Operating Systems

What is Spotlight?

By Jonathon Eades — Founder & IT InstructorUpdated

Spotlight is the macOS system-wide search, opened with Cmd+Space, that finds apps, files, settings and messages and answers quick math and conversions.

On the exam

Spotlight comes up in CompTIA A+ 220-1202, objective 1.8.

Taught in

What is Spotlight?

Spotlight is the search tool built into macOS, and into iOS and iPadOS as well. On a Mac, press Cmd+Space or click the magnifying glass in the menu bar, type a few letters, and results appear as you type. Press Return to open the top hit. Because it can open an app or a System Settings pane by name, it is often the fastest way to guide a user over the phone: "Press Command and Space, type Disk Utility, then press Return."

What it finds and does

  • Apps, documents, folders and images, matched by file name and by content, such as words inside a PDF
  • System Settings panes, for example typing printers to reach Printers & Scanners
  • Mail messages, contacts, calendar events, notes and messages, when those sources are enabled
  • Quick answers: arithmetic (1024*8), unit and currency conversions, and dictionary definitions
  • Web suggestions, depending on the user's privacy settings

Finder's search field uses the same index, so a file Spotlight cannot find usually will not show up in a Finder search either.

How indexing works

Spotlight answers instantly because it searches an index rather than reading the disk each time. Background processes named mds, mds_stores and mdworker read new and changed files and update the index. After a fresh install, a large migration or a major macOS update, these processes can use a lot of CPU and disk for a while, and results stay incomplete until indexing finishes. Seeing them near the top of Activity Monitor at such a time is normal, not a sign of malware.

Privacy and exclusions

Spotlight settings let the user switch off whole result categories and add folders or disks to a privacy list so they are never indexed. That suits a confidential project folder or an external backup disk. The settings are in System Settings, under Siri & Spotlight on many recent versions (some versions give Spotlight its own pane); older releases kept them in System Preferences.

Troubleshooting Spotlight

  • Results missing right after setup or migration: wait for indexing to finish before changing anything.
  • A known file never appears: check whether its folder or disk is on the privacy list, and whether the file lives only in iCloud Drive or on a disk that is not mounted.
  • Index looks corrupt or stuck: rebuild it. The settings method is to add the disk to the privacy list and then remove it, which forces a fresh index. In Terminal, mdutil -s / shows whether indexing is enabled for the startup volume, and sudo mdutil -E / erases its index so it rebuilds.
  • Searching from Terminal: mdfind queries the same index, for example mdfind -name report.

Spotlight compared with Windows Search

The Windows counterpart is Windows Search, opened with Win+S or by typing in the Start menu. It also relies on an index, managed through Indexing Options in Control Panel, where Advanced > Rebuild does the job of mdutil -E. On both systems, search quality depends on index health, and both can look broken right after a large data restore. Neither is a file manager: on a Mac, Finder browses and organizes files, while Spotlight only finds them.

Spotlight on the CompTIA A+ exam

Spotlight is part of Core 2 (220-1202) objective 1.8, macOS features and utilities. Know the shortcut (Cmd+Space), what it searches, that it depends on an index, and that its privacy list excludes locations from search. If a question asks how a Mac user quickly finds a file or opens an app by name, think Spotlight. If search results are missing right after a migration, think indexing still in progress or an index rebuild, not data loss.

Studying for CompTIA (Operating Systems)?

ExamWizardz turns the official objectives into a guided study plan — with practice tests, realistic PBQs, and a readiness score. Start free.

Start studying free

Related terms