Example of an App that index data to Spotlight and then let you search them thru in app search bar.
There is a way that your apps content could show up in a spotlight search. You can index it in your app and put it to the spotlight framework. I found a lot of tutorials and ways how to do it (Ray Wenderlich) but I didn't found much about the other way around. Use these indexes and ios spotlight search inside my app for searching content from the app.
I did it and this is sample app that shows how to do it. BUT it has its cons and pros.
- "Kill two birds with one stone" - Simultaneously make search in your app and put content to Spotlight.
- Easy to implement.
- Native.
- Black box - There is a little of documentations about it. You don't know how fast it is.
- Adding and removing from the stack is not certain(it's not given that it happenned)