Posts

Post not yet marked as solved
2 Replies
1.4k Views
The docs say that to avoid duplicating data in the Spotlight index, the relatedUniqueIdentifier for the NSUserActivity's contentAttributeSet should be set equal to the Core Spotlight searchable item's uniqueIdentifier."If you’re using both NSUserActivity and Core Spotlight APIs to index the same item, set this property [relatedUniqueIdentifier] in the activity to specify the unique identifier of the Core Spotlight item to which the activity is related, and to avoid displaying duplicate results in Spotlight."But if Core Data is generating those searchable items automatically, using the NSCoreDataCoreSpotlightDelegate to just provide the attribute set, how can I get at the item's uniqueIdentifier? Is there a property I can set on the Spotlight attribute set that maps onto the uniqueIdentifier?
Posted Last updated
.