Is there a way to use the Spotlight API to search content that's on a server instead of stored locally in the app?

Looking at the API documentation for the Spotlight API it doesn't look possible. I'm still asking since in the Keynote, we saw recipe results from the Yummly app (at 36:00) and those results look like they're pulled from the Internet, not a local app (or were they locally saved favourites in the Yummly app?)

It seems possible, I mean, your app would need to be aware of the content on the server. You would need to fetch certain data from the server to create the CSSearchableItem, and then fetch the whole item to display when you get the unique identifier from

application:continueUserActivity:restorationHandler:
. Of course you would want to store some stuff locally so you don't make tons of requests.


I also saw a "Web markup" item on the search overview in this page (https://developer.apple.com/ios/pre-release/) the documentation link for it seems broken though.

Well I can't have the app index a whole web API.


So it seems it would be pretty much impossible for, say, Netflix, to put its movies in there

If this is content that's accessible on a server then you should look at the Web Markup solution to get the Apple web crawler to index the content, which would then show up for users when searching from their devices. That's what the Yummly example would have been, it's publicly accessible content that was crawled and then served up via iOS Search.

Yes thank you I understand how things work now ! It's pretty clever and very ambitious

Is there a way to use the Spotlight API to search content that's on a server instead of stored locally in the app?
 
 
Q