A protocol defining methods a delegate object or app extension uses to handle communication from the on-device index.


@protocol CSSearchableIndexDelegate


The CSSearchableIndexDelegate protocol defines methods that a delegate object or an app extension can use to handle communication from the on-device index. Apps that are long-running or that perform batch updates to the index should implement the required methods of this protocol in either a delegate object or an app extension.

The index delegate methods are called when there is an issue with the index and more information is needed from an app. For example, the methods can be called when the entire index is lost or there was a failure to process data for some identifiers.


Updating the Index

- searchableIndex:reindexAllSearchableItemsWithAcknowledgementHandler:

Tells the delegate to reindex all searchable data and clear all local state information.


- searchableIndex:reindexSearchableItemsWithIdentifiers:acknowledgementHandler:

Tells the delegate to reindex the searchable items associated with the specified identifiers.


Getting Information About Indexing

- searchableIndexDidThrottle:

Tells the delegate that indexing is being throttled.

- searchableIndexDidFinishThrottle:

Tells the delegate that the index throttling has finished.


Inherits From

See Also

Setting the Delegate


The delegate object that can handle index-management tasks.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software