An increasing number of Apple and third-party applications useCoreSpotlight to index data. This powers both in-app searches as well as the Spotlight menu item.
I am looking for a way to search all application data indexed by CoreSpotlight. For in-app searches, I can use
CSSearchQuery
to find previously submitted CSSearchableItem
s. I however fail to find API to extend searches to content owned by other applications.How can I search through all content indexed by CoreSpotlight and replicate the behavior of the Spotlight window?