About Spotlight Importers
Spotlight metadata importers extract metadata from custom file formats after files are saved, copied, or moved. That custom metadata can then be searched from applications, both System applications and custom applications,. The files can be searched on local disks and networked storage on OS X.
Who Should Read This Document
If your applications supports saving its custom file formats to disk, you should consider providing Spotlight support by implementing a metadata importer.
Read this document to learn how metadata importers work and how to write an importer.
Organization of This Document
The following articles cover key concepts in understanding how metadata importers work:
Extracting Metadata from Files describes the role of the metadata importer and its components.
Assigning Values to Metadata Attributes provides an overview of the Spotlight metadata attributes and explains how to define your own attributes.
Spotlight Importer Schema Format describes the format of a Spotlight importer schema file.
These articles explain how to implement metadata importers:
Spotlight Importer Performance describes important performance considerations.
Writing a Spotlight Importer explains how to write a metadata importer.
Troubleshooting Spotlight Importers answers questions you might have when you’re testing your Spotlight importers.
There are other aspects of Spotlight metadata, not covered, by this document,that are fundamental to implementing a metadata importer. For example, this document does not explain the commonly used metadata keys or provide guidelines on using those keys to their full potential. Refer to these documents for more details:
Spotlight Overview explains concepts that are key to understanding how search, including Spotlight, work.
File Metadata Attributes Reference describes the metadata keys Apple provides.
File Metadata Search Programming Guide describes how to search for files using Spotlight metadata.
Core Data Spotlight Integration Programming Guide discusses how to take advantage of Spotlight features in an app that uses Core Data for its document storage.