Introduction
Core Data helps you to manage a graph of objects in your program and to save the graph to a persistent store. Spotlight is a fast desktop search technology that allows users to organize and search for files based on metadata. To integrate a Core Data-based program with Spotlight, you have to provide the Spotlight indexer with information about the data in your persistent store. There are two ways to do this; which approach you take depends on whether or not you are developing a document-based application. In either case, you have to write a suitable importer for your Core Data stores.
You should read this document to learn how to integrate Spotlight searching with your Core Data-based program.
Organization of This Document
This document comprises the following articles:
Store Metadata-Level Indexing describes how you support Spotlight indexing in a document-based application.
Record-Level Indexing describes how you support Spotlight indexing in a non-document-based application.
See Also
There are other technologies, not fully covered in this document, that are fundamental to integrating Core Data-based programs into Spotlight. Refer to these documents for more details:
Core Data Programming Guide describes Core Data.
Spotlight Overview describes the Spotlight technology.
Spotlight Importer Programming Guide describe the plug-ins that extract metadata from files.
File Metadata Attributes Reference describe the metadata attributes provided by Apple.
Copyright © 2012 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2012-07-23