What parts of an app can be made available to search?

I have two apps, one available for sale & one still in development, they are both based on searchable SQLite databases. Are those database the kind of thing that can be made availabe to the new expanded search in iOS 9? Still reading but as yet not sure how to set that up if it is.

Replies

At this link, there is a good explanation of how you can index app content for search. Specifically look at the "Use Core Spotlight APIs to Make App Content Searchable" section.


Any time you add, change, or remove an item from core data, you can reindex it using the above documentation to keep it up to date in the spotlight. It would be more effecient to re index as an item is deleted or added unless you are doing these things in bulk, in which case you should probably do the re indexing for spotlight once all of your core data operations are finished.

If you access those databases using Core Data then you can simply apply a couple of attributes in the Core Data Model to start the ball rolling with Spotlight. If you just want to use the SQLite or other pieces of data independently then you can use the Core Spotlight Framework.


To get started indexing app content, perform these steps:

  • Create a
    CSSearchableItemAttributeSet
    object and specify properties that describe the item you want to index.
  • Create a
    CSSearchableItem
    object to represent the item. A
    CSSearchableItem
    object has a unique identifier that lets you refer to it later.
  • If needed, specify a domain identifier so that you can gather multiple items together and manage them as a group.
  • Associate the attribute set with the searchable item.
  • Add the searchable item to the index.


Please let me know if this resolves the issue by clicking the link or update your post with more info.