Spotlight (Apple) Explained

Spotlight
Screenshot Size:300px
Operating System:Mac OS X Tiger and later, iPhone OS 3 and later(Spotlight Search), visionOS 1 and later
Genre:Desktop search

Spotlight is a system-wide desktop search feature of Apple's macOS, iOS, and visionOS operating systems. Spotlight is a selection-based search 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. 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. Spotlight also offers quick access to definitions from the built-in New Oxford American Dictionary 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,[1] and then released with Mac OS X Tiger in April 2005.[2]

A similar feature for iPhone OS 3 with the same name was announced on March 17, 2009.

macOS

Indices of filesystem metadata are maintained by the Metadata Server (which appears in the system as the mds daemon, or mdworker). The Metadata Server is started by launchd 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 disks by the mdimport daemon; it does not index removable read-only media such as CDs or DVDs,[3] 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, MP3, and PDF 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 disks. 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 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 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 scripts. 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.[4] These utilities are also available on Darwin.

Although not widely advertised, Boolean expressions can be used in Spotlight searches.[5] 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).[6]

Currently Spotlight is unable to index and search NTFS volumes shared via SMB.[7]

Leopard

With Mac OS X Leopard, 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 has been added to the GUI 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").[8] 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.[9]

Also while Spotlight is not enabled on the server version of Tiger,[10] it is on the server release of Leopard.[11]

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, 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, 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 (formerly iPhone OS) products since iPhone OS 3. The feature helps users search contacts, mail metadata,[12] 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, 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 to include more intuitive web results via Bing and Wikipedia, as well as quicker access to other content.[13]

With iOS 9, Spotlight Search has been updated to include results of content in apps.[14]

In 2021, Apple introduced Image Search in Spotlight on iOS, Spotlight now uses intelligence to search photos by location, people, scenes, or objects, and using Live Text, Spotlight can find text and handwriting in photos.

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, 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.[15] 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.[16] [17] [18]

See also

External links

Notes and References

  1. Web site: For Apple's Tiger, the keyword is search . Ina Fried . June 28, 2004 . November 15, 2009 .
  2. Web site: Apple to Ship Mac OS X "Tiger" on April 29. Apple, Inc.. April 12, 2005. November 15, 2009. Spotlight searches the contents inside documents and information about those documents, or metadata.
  3. Web site: Mac OS X 10.4 Tiger . John Siracusa . April 28, 2005 . ArsTechnica.com . April 4, 2007.
  4. Web site: Command spotlight . Kirk McElhearn . July 8, 2005 . Macworld . April 4, 2007 . April 3, 2007 . https://web.archive.org/web/20070403171917/http://www.macworld.com/2005/07/secrets/augustgeekfactor/index.php . dead .
  5. Web site: 10.4: Use Boolean (NOT, OR) searches in Spotlight . May 12, 2005 . MacOSXHints.com . November 9, 2008 . October 10, 2014 . https://web.archive.org/web/20141010205329/http://hints.macworld.com/article.php?story=20050503165951266 . dead .
  6. Web site: Boolean search in Spotlight . Hiram . April 30, 2005 . Ipse dixit . January 21, 2007 . October 10, 2006 . https://web.archive.org/web/20061010031241/http://www.hiram.nl/ipsedixit/artikel/793/boolean-search-in-spotlight . dead .
  7. Web site: Can't connect via SMB.
  8. Web site: Apple - Mac OS X - Leopard Sneak Peek - Spotlight . August 7, 2006 . Apple.com . January 21, 2007 . https://web.archive.org/web/20070117002646/http://www.apple.com/macosx/leopard/spotlight.html . January 17, 2007.
  9. Web site: Hidden Gems: Boolean Spotlight Queries . April 1, 2012 . April 26, 2012 . https://web.archive.org/web/20120426091648/http://1984.roeme.ch/2012/01/hidden-gems-boolean-spotlight-queries/ . dead .
  10. Web site: Tiger Review: Examining Spotlight . Robert Mohns . 2005 . Macintouch.com . April 4, 2007 . May 1, 2007 . https://web.archive.org/web/20070501193250/http://www.macintouch.com/tigerreview/spotlight.html . dead .
  11. Web site: Apple - Leopard Server Sneak Peek - Spotlight Server . August 7, 2006 . Apple.com . April 4, 2007 . August 27, 2007 . https://web.archive.org/web/20070827182951/http://www.apple.com/server/macosx/leopard/spotlightserver.html . dead .
  12. Web site: Hands on With IPhone 3.0's Spotlight . Dan . Frakes . 2009 . PC World / Macworld . December 26, 2009 . iPhone Spotlight doesn't search the full content of every file on your phone . July 21, 2009 . https://web.archive.org/web/20090721050104/http://www.pcworld.com/article/166855/hands_on_with_iphone_30s_spotlight.html . dead .
  13. Web site: Apple - iOS 8 - Spotlight . 2014 . September 17, 2014 . Apple . September 24, 2014 . https://web.archive.org/web/20140924031959/http://www.apple.com/ios/whats-new/spotlight/ . dead .
  14. Web site: Hands-on with the new, proactive Spotlight in iOS 9. Fleishman. Glenn. September 16, 2015. Macworld. IDG Consumer & SMB. 2016-07-29.
  15. Web site: Axon. Samuel. 2017-09-25. Siri and Spotlight will now use Google, not Bing, for Web searches. 2021-04-11. Ars Technica. en-us.
  16. News: Apple's Mac computers can automatically collect your location information . Ashkan Soltani and Craig Timberg. October 20, 2014 . The Washington Post . February 24, 2015.
  17. Web site: Apple clarifies Spotlight Suggestions data collection practices . Steven Musil . October 20, 2014 . Cnet . February 24, 2015 . https://web.archive.org/web/20150727152056/http://www.cnet.com/news/apple-clarifies-spotlight-suggestions-data-collection-practices/ . 2015-07-27.
  18. Web site: OS X Yosemite: Spotlight Suggestions . https://web.archive.org/web/20150727151352/https://support.apple.com/kb/PH18827?locale=en_US&viewlocale=en_US . 2015-07-27.