應用搜索有三個不一樣但相關的api。他們爲使不一樣的應用程序用例設計搜索。 App Search has three APIs that are distinct but related. They're designed for enabling different use cases of App Search.html
第一個是NSUserActivityios
The first one is NSUserActivity. This is an extension of the Handoff API that we released in iOS 8.web
第二個是CoreSpotlightapi
The second API is called CoreSpotlight.app
第三個是web標記spa
Third API is web markup.設計
Handoff 切換rest
NSUserActivity was introduced in iOS 8 to support Handoff. Handoff is the amazing feature that allows you to start an activity on one device and pick up right where you left off on another. NSUserActivity is a lightweight way to capture application state which can be restored later.code
切換是神奇的特性,它容許您啓動一個活動在一臺設備上,從你離開的地方。NSUserActivity捕獲應用程序狀態是一個輕量級方法後能夠恢復。htm
http://www.cocoachina.com/ios/20150409/11515.html
http://code.tutsplus.com/tutorials/an-introduction-to-handoff--cms-24349
http://www.cocoachina.com/ios/20150819/13116.html
search api