Instance Method

searchableIndex:reindexSearchableItemsWithIdentifiers:acknowledgementHandler:

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

Required.

Declaration

- (void)searchableIndex:(CSSearchableIndex *)searchableIndex reindexSearchableItemsWithIdentifiers:(NSArray<NSString *> *)identifiers acknowledgementHandler:(void (^)(void))acknowledgementHandler;

Parameters

searchableIndex

The index in which to reindex the specified searchable data. To update the state of the items, the delegate or app extension should call indexSearchableItems:completionHandler: passing in searchableIndex.

identifiers

An array of identifiers that specify searchable items.

acknowledgementHandler

The handler to call after all client state has been saved. Note that if the app passes client state information in a batch (for example, by calling endIndexBatchWithClientState:completionHandler:), the acknowledgement handler can be called immediately.

The delegate or app extension must call the acknowledgement handler after all client state information has been saved, so that the indexer can call this method again in case of a crash.

Discussion

An app extension should not use the index passed in searchableIndex when a custom data protection class is needed.

See Also

Updating the Index

- searchableIndex:reindexAllSearchableItemsWithAcknowledgementHandler:

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

Required.