Get full text of search request from Spotlight?

2019-08-10 09:40发布

问题:

Since iOS9, it's possible to make Spotlight to show some items from own Application in search results. When user taps on result - App opens with some action handler.

My question: is it possible somehow to get the full text of user's search request in application?

Example: My application indexes item 'banana' using CoreSpotlight API. User searches: "banana pie". Spotlight shows result from my App, actually, item "banana". I would like to get string "banana pie".

I have already tried to find it myself on developer.apple.com, looked through CoreSpotlight documentation, but didn't find anything that completely answers my question.