Adds or updates items in the index.
- iOS 9.0+
- macOS 10.13+
- Mac Catalyst 13.0+Beta
- Core Spotlight
An array of searchable items to add or update.
The block that’s called when the data has been journaled by the index, which means that the index makes a note that it has to perform this operation. If the completion handler returns an error, it means that the data wasn’t journaled correctly and the client should retry the request.
The block receives the following parameter:
If an error occurred, this parameter holds an error object that explains the error. Otherwise, the value of this parameter is
searchable protocol method is called in the case that the journaling completed successfully but the data was not able to be indexed for some reason.