My bug was closed as "works as expected". So that means I either didn't explain myself very well, or I don't understand relatedUniqueIdentifier.
I was under the impression that relatedUniqueIdentifier could be used to that in the event the same content is added to the index either via Core Spotlight or via the AppleBot that it would enable de-duplication: See iOS 9.0 release notes:
When you combine multiple Search APIs, items can get indexed from multiple places. To avoid giving users duplicate items in search results, you need to link item IDs appropriately. To ensure that item IDs are linked, you can use the same value in a searchable item’s
uniqueIdentifier
property and in the
relatedUniqueIdentifier
property within an
NSUserActivity
object’s
contentAttributes
property. If you use all three APIs, it works well to use a specific URL as the value that uniquely identifies an item. (You can also set an
NSUserActivity
object’s
webpageURL
property to the URL for an item.)
So how am I supposed to do that if I can't use the relatedUniqueIdentifier property when trying to index an NSUserActivity?