Objective-C

  1. Create a new iOS project and add CoreSpotlight and MobileCoreServices framework to your project.

  2. Create the actual CSSearchableItem and associating the uniqueIdentifier, domainIdentifier and the attributeSet. Finally index the CSSearchableItem using [[CSSearchableIndex defaultSearchableIndex]…] as show below.

  3. OK!Test the index!

enter image description here