Spotlight is a system-wide
desktop search
Desktop search tools search within a user's own computer files as opposed to searching the Internet. These tools are designed to find information on the user's PC, including web browser history, e-mail archives, text documents, sound files, images ...
feature of
Apple's macOS
macOS (; previously OS X and originally Mac OS X) is a Unix operating system developed and marketed by Apple Inc. since 2001. It is the primary operating system for Apple's Mac computers. Within the market of desktop and lapt ...
and
iOS
iOS (formerly iPhone OS) is a mobile operating system created and developed by Apple Inc. exclusively for its hardware. It is the operating system that powers many of the company's mobile devices, including the iPhone; the term also includes ...
operating systems. Spotlight is a
selection-based search A selection-based search system is a search engine system in which the user invokes a search query using only the mouse. A selection-based search system allows the user to search the internet for more information about any keyword or phrase contai ...
system, which creates an index of all items and files on the system. It is designed to allow the user to quickly locate a wide variety of items on the computer, including documents, pictures, music, applications, and
System Settings
System Settings (System Preferences on macOS Monterey and earlier) is an application included with macOS. It allows users to modify various system settings, which are divided into separate Preference Panes. The System Settings application wa ...
. In addition, specific words in documents and in web pages in a web browser's history or bookmarks can be searched. It also allows the user to narrow down searches with creation dates, modification dates, sizes, types and other
attributes
Attribute may refer to:
* Attribute (philosophy), an extrinsic property of an object
* Attribute (research), a characteristic of an object
* Grammatical modifier, in natural languages
* Attribute (computing), a specification that defines a proper ...
. Spotlight also offers quick access to definitions from the built-in ''
New Oxford American Dictionary
The ''New Oxford American Dictionary'' (''NOAD'') is a single-volume dictionary of American English compiled by American editors at the Oxford University Press.
''NOAD'' is based upon the ''New Oxford Dictionary of English'' (''NODE''), published ...
'' and to calculator functionality. There are also
command-line tools to perform functions such as Spotlight searches.
Spotlight was first announced at the June 2004
Worldwide Developers Conference
The Worldwide Developers Conference (WWDC) is an information technology conference held annually by Apple Inc. The conference is usually held at Apple Park in California. The event is usually used to showcase new software and technologies in t ...
, and then released with
Mac OS X Tiger
Mac OS X Tiger (version 10.4) is the 5th major release of macOS, Apple's desktop and server operating system for Mac computers. Tiger was released to the public on April 29, 2005 for US$129.95 as the successor to Mac OS X 10.3 Panther. Some o ...
in April 2005.
A similar feature for
iPhone OS 3 with the same name was announced on March 17, 2009.
macOS
Indices of filesystem
metadata
Metadata is "data that provides information about other data", but not the content of the data, such as the text of a message or the image itself. There are many distinct types of metadata, including:
* Descriptive metadata – the descriptive ...
are maintained by the Metadata Server (which appears in the system as the mds
daemon
Daimon or Daemon (Ancient Greek: , "god", "godlike", "power", "fate") originally referred to a lesser deity or guiding spirit such as the daimons of ancient Greek religion and mythology and of later Hellenistic religion and philosophy.
The word ...
, or mdworker). The Metadata Server is started by
launchd
launchd is an init and operating system service management daemon created by Apple Inc. as part of macOS to replace its BSD-style init and SystemStarter. There have been efforts to port launchd to FreeBSD and derived systems.
Components
Th ...
when macOS (formerly Mac OS X, then OS X) boots and is activated by client requests or changes to the filesystems that it monitors. It is fed information about the files on a computer's
hard disk
A hard disk drive (HDD), hard disk, hard drive, or fixed disk is an electro-mechanical data storage device that stores and retrieves digital data using magnetic storage with one or more rigid rapidly rotating platters coated with magnet ...
s by the mdimport daemon; it does not index removable read-only media such as
CDs
The compact disc (CD) is a digital optical disc data storage format that was co-developed by Philips and Sony to store and play digital audio recordings. In August 1982, the first compact disc was manufactured. It was then released in Octo ...
or
DVD
The DVD (common abbreviation for Digital Video Disc or Digital Versatile Disc) is a digital optical disc data storage format. It was invented and developed in 1995 and first released on November 1, 1996, in Japan. The medium can store any kin ...
s,
but it will index removable, writable external media connected via USB, FireWire, or Thunderbolt, and Secure Digital cards. Aside from basic information about each file like its name, size and timestamps, the mdimport daemon can also index the content of some files, when it has an Importer plug-in that tells it how the file content is formatted. Spotlight comes with importers for certain types of files, such as
Microsoft Word
Microsoft Word is a word processing software developed by Microsoft. It was first released on October 25, 1983, under the name ''Multi-Tool Word'' for Xenix systems. Subsequent versions were later written for several other platforms includin ...
,
MP3
MP3 (formally MPEG-1 Audio Layer III or MPEG-2 Audio Layer III) is a coding format for digital audio developed largely by the Fraunhofer Society in Germany, with support from other digital scientists in the United States and elsewhere. Origin ...
, and
PDF
Portable Document Format (PDF), standardized as ISO 32000, is a file format developed by Adobe in 1992 to present documents, including text formatting and images, in a manner independent of application software, hardware, and operating systems. ...
documents. Apple publishes
APIs that allow developers to write Spotlight Importer plug-ins for their own file formats.
The first time that a user logs onto the operating system, Spotlight builds indexes of metadata about the files on the computer's
hard disk
A hard disk drive (HDD), hard disk, hard drive, or fixed disk is an electro-mechanical data storage device that stores and retrieves digital data using magnetic storage with one or more rigid rapidly rotating platters coated with magnet ...
s.
It also builds indexes of files on devices such as external hard drives that are connected to the system. This initial indexing may take some time, but after this the indexes are updated continuously in the background as files are created or modified. If the system discovers that files on an external drive have been modified on a system running a version of macOS older than Mac OS X Tiger, it will re-index the volume from scratch.
Within Tiger, Spotlight can be accessed from a number of places. Clicking on an icon in the top-right of the
menu bar
A menu bar is a graphical control element which contains drop-down menus.
The menu bar's purpose is to supply a common housing for window- or application-specific menus which provide access to such functions as opening files, interacting wi ...
opens up a text field where a search query can be entered.
Finder windows also have a text field in the top-right corner where a query can be entered, as do the standard load and save dialogue boxes. Both of these text fields immediately start listing results of the search as soon as the user starts typing in a search term, returning items that either match the term, or items that start with the term. The search results can be further refined by adding criteria in a Finder window such as "Created Today" or "Size Greater than 1 KB".
Mac OS X Tiger and later also include
command line
A command-line interpreter or command-line processor uses a command-line interface (CLI) to receive commands from a user in the form of lines of text. This provides a means of setting parameters for the environment, invoking executables and pro ...
utilities for querying or manipulating Spotlight. The mdimport command, as well as being used by the system itself to index information, can also be used by the user to import certain files that would otherwise be ignored or force files to be reimported. It is also designed to be used as a debugging tool for developers writing Importer plug-ins. mdfind allows the user to perform Spotlight queries from the command line, also allowing Spotlight queries to be included in things like
shell script
A shell script is a computer program designed to be run by a Unix shell, a command-line interpreter. The various dialects of shell scripts are considered to be scripting languages. Typical operations performed by shell scripts include file manip ...
s. mdls lists the indexed attributes for specific files, allowing the user to specify which files and/or which attributes. The indexes that Spotlight creates can be managed with mdutil, which can erase existing indexes causing them to be rebuilt if necessary or turn indexing off. These utilities are also available on
Darwin.
Although not widely advertised, Spotlight can perform boolean searches. By default if one includes more than one word, Spotlight performs the search as if an "AND" was included in between words. If one places a ', ' between words, Spotlight performs an OR query. Placing a '-' before a word tells Spotlight to search for results that do not include that word (a NOT query).
Currently Spotlight is unable to index and search
NTFS
New Technology File System (NTFS) is a proprietary journaling file system developed by Microsoft. Starting with Windows NT 3.1, it is the default file system of the Windows NT family. It superseded File Allocation Table (FAT) as the preferred fil ...
volumes shared via
SMB.
Leopard
With
Mac OS X Leopard
Mac OS X Leopard (version 10.5) is the sixth software versioning, major release of macOS, Apple Inc., Apple's desktop and server operating system for Macintosh computers. Leopard was released on October 26, 2007 as the successor of Mac OS X Tig ...
, Apple introduced some additional features. With Spotlight in Tiger, users can only search devices that are attached to their computers. With Leopard, Spotlight is able to search networked Macs running Leopard (both client and server versions) that have file sharing enabled. A feature called
Quick Look
Quick Look is a quick preview feature developed by Apple Inc. which was introduced in its operating system Mac OS X 10.5 Leopard. The feature was announced at the Worldwide Developers Conference on Jun. 11, 2007.
While macOS's Finder has alway ...
has been added to the
GUI
The GUI ( "UI" by itself is still usually pronounced . or ), graphical user interface, is a form of user interface that allows users to interact with electronic devices through graphical icons and audio indicator such as primary notation, inste ...
that will display live previews of files within the search results, so applications do not have to be opened just to confirm that the user has found the right file. The syntax has also been extended to include support for worded boolean operators ("AND", "OR" and "NOT"). These variants of the operators are localized; while users that have their System language set to English may use an "AND", German users, for example, would have to use "UND". The character variants work with any system language.
Also while Spotlight is not enabled on the server version of Tiger, it is on the server release of Leopard.
In addition, where Spotlight in Tiger had a unique and separate window design, Spotlight in Leopard now shares windows with the Finder, allowing for a more unified GUI.
The unique Spotlight window in Tiger allowed sorting and viewing of search results by any metadata handled by the Finder; whereas Spotlight Finder windows in Leopard are fixed to view and sort items by last opened date, filename and kind only. Under Leopard there is currently no way to save window preferences for the Finder window that is opened via Spotlight.
Since Leopard the Spotlight menu has doubled as a
calculator
An electronic calculator is typically a portable electronic device used to perform calculations, ranging from basic arithmetic to complex mathematics.
The first solid-state electronic calculator was created in the early 1960s. Pocket-sized ...
, with functionality very similar to the
Google search feature (but without the need to be online), as well as a dictionary that allows one to look up the definition of an English word using the
Oxford Dictionary included in macOS.
Yosemite
In
OS X Yosemite
OS X Yosemite ( ; version 10.10) is the eleventh major release of macOS, Apple Inc.'s desktop and server operating system for Macintosh computers.
OS X Yosemite was announced and released to developers on June 2, 2014, at WWDC 2014 and rel ...
, the Spotlight search UI was completely redesigned. Instead of it acting as a drop-down menu, it is now located in the center of the screen by default, though the search bar (and/or the window itself) can be dragged to wherever the user prefers it to pop up. In addition to doing everything that the previous versions of Spotlight could do, the Yosemite revamp of Spotlight adds a preview or info pane on the right side (with results on the left side), and also adds support for searching through Wikipedia, Maps, and other sources.
iOS
A search tool also named Spotlight has been included on
iOS
iOS (formerly iPhone OS) is a mobile operating system created and developed by Apple Inc. exclusively for its hardware. It is the operating system that powers many of the company's mobile devices, including the iPhone; the term also includes ...
(formerly iPhone OS) products since
iPhone OS 3. The feature helps users search contacts, mail
metadata
Metadata is "data that provides information about other data", but not the content of the data, such as the text of a message or the image itself. There are many distinct types of metadata, including:
* Descriptive metadata – the descriptive ...
,
[
] calendars, media and other content.
Compared to Spotlight on macOS, the iOS search ability is limited.
The Spotlight screen is opened with a finger-flick to the right from the primary home screen, or, as of iOS 7, by pulling down on any of the home screens.
The feature was announced in March 2009 and released with iOS 3.0 in June 2009. The release of iOS 4.0 included the ability to search text messages. In
iOS 6
iOS 6 is the sixth major release of the iOS mobile operating system developed by Apple Inc, being the successor to iOS 5. It was announced at the company's Worldwide Developers Conference on June 11, 2012, and was released on September 19, 201 ...
, the folder that an application is inside of is now shown (if applicable). Since the Introduction of iOS 7, Spotlight no longer has its own dedicated page, but is accessible by pulling down on the middle of any Homescreen.
On September 17, 2014, Spotlight Search was updated with
iOS 8
iOS 8 is the eighth major release of the iOS mobile operating system developed by Apple Inc., being the successor to iOS 7. It was announced at the company's Worldwide Developers Conference on June 2, 2014, and was released on September 17, 2 ...
to include more intuitive web results via
Bing
Bing most often refers to:
* Bing Crosby (1903–1977), American singer
* Microsoft Bing, a web search engine
Bing may also refer to:
Food and drink
* Bing (bread), a Chinese flatbread
* Bing (soft drink), a UK brand
* Bing cherry, a varie ...
and
Wikipedia
Wikipedia is a multilingual free online encyclopedia written and maintained by a community of volunteers, known as Wikipedians, through open collaboration and using a wiki-based editing system. Wikipedia is the largest and most-read refer ...
, as well as quicker access to other content.
With
iOS 9
iOS 9 is the ninth major release of the iOS mobile operating system developed by Apple Inc., being the successor to iOS 8. It was announced at the company's Worldwide Developers Conference on June 8, 2015, and was released on September 16, 20 ...
, Spotlight Search has been updated to include results of content in apps.
Privacy concerns
Since the release of Yosemite, Spotlight sends all entered queries and location information to Apple by default. The data is accompanied by a unique identifying code, which Apple claims to rotate every 15 minutes to a new identifier. In response to privacy concerns, Apple has stated that they do not use the data to create profiles of their users, and that query and location information is only shared with their partner,
Bing
Bing most often refers to:
* Bing Crosby (1903–1977), American singer
* Microsoft Bing, a web search engine
Bing may also refer to:
Food and drink
* Bing (bread), a Chinese flatbread
* Bing (soft drink), a UK brand
* Bing cherry, a varie ...
, under a strict contract which prohibits the information from being used for advertising purposes. In 2017, Bing was replaced by Google as the search engine for Spotlight. Additionally, Apple has stated that while Spotlight seeks to obscure exact locations, the information is typically more precise in densely populated areas and less so in sparse ones. Spotlight data sharing may be disabled from Spotlight System Preferences by deselecting the Spotlight Suggestions checkbox. When this is done, data is not shared with Apple.
See also
*
Desktop search
Desktop search tools search within a user's own computer files as opposed to searching the Internet. These tools are designed to find information on the user's PC, including web browser history, e-mail archives, text documents, sound files, images ...
*
List of desktop search engines
*
Search As You Type functionality
References
External links
*
Apple's File Metadata Query Expression Syntax*
{{Navigationbox Desktopsearch
Desktop search engines
MacOS user interface
IOS software
2005 software