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.
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: