Wednesday, November 03, 2004, 10:00 am
New Apple document details Spotlight search queries
Apple provides technical details of its forthcoming Spotlight technology in a new public developer documentation.Apple Computer on Tuesday published to its developer Web site an in-depth technical document on its forthcoming meta-data driven search technology. The document, titled "Working with Spotlight," covers the Spotlight Store—a file system-level database that holds all of the meta-data attributes about the files, as well as an index of their contents—and provides tips on examining meta-data.
More interesting, however, is a discussion of Spotlight search queries and their presence throughout the next-generation Mac operating system.
"The ability to create queries, and get a list of files in response to those queries, is what allows Spotlight to transcend the typical behavior of a file system and enables you to build a totally new category of applications," the document reads, in part.

"One of the best ways to find examples of complex queries is to use the Finder. Build a query using the Finder's Find feature and then save it. Then, navigate to the Saved Searches folder in your Home folder. You'll see the saved search as a Smart Folder. Get Info about the folder and you'll see the query nicely listed for you to examine."
According to the document, Tiger will also ship with several meta-data importers for a variety of common file formats as well as all the important file formats used by Apple's applications such as iTunes and the Address Book. A partial list of file formats includes: JPEG, PNG, TIFF, and GIF images; MP3 and AAC audio files; QuickTime movies; PDF files; Microsoft Word and Excel documents; iChat transcripts; Email messages; Address Book contacts; and iCal calendar files.
Over this past weekend, Apple provided its developers with the first new build of Tiger since its World Wide Developers Conference in June.
On Topic: General
- Song skipping feature in Apple's 'iRadio' reportedly holding up Sony deal
- Music service's structure, plus Apple's culture, holding up 'iRadio' service
- Apple fixes MacBook Air crashing issue in critical firmware update
- Apple TV to get CW content in new streaming deal
- Apple CEO talks taxes ahead of hearing: 'We pay every dollar that we owe'






Actually, one interesting tidbit that maybe I just realize is this:
So apps don't require you to manually tell it what to look for. I imagine that you could have an app that, when you opened a file, for example, "Murphy Account," could look up any related documents (those with some shared metadata info) like spreadsheets, timesheets, expense reports, correspondence, etc. on the fly and keep an updated list of links or related articles to one side. So I guess this means that any app can act osrt of like a smart folder in itself for whatever that's worth.
Also, it sounds like the metadata plugins for third parties will be kept in a folder in the root library. Does this mean an app would require an installer to put this in the right place, or can it be done in the background on first-run? That might be a security issue.
Finally: for you geeks, Spotlight works in the CLI too.