Currently, our indexing works and we can find any content we saw earlier. We can even select results from the Spotlight index and have our app open on the correct page. If you've taken on the challenge to implement the handling of detail pages, your app should be able to handle continuation of any activity we've indexed. Wouldn't it be cool if we could be a bit more proactive about indexing though? Ideally, we would index any new family members or movies right as the user adds them.
This is exactly what
CSSearchableItem is good at. The
CSSearchableItem class enables you to index content the user might not have seen before. Indexing
CSSearchableItem instances is pretty straightforward. The steps involved are similar ...