thumbnailData was not updating after updating item in CSSearchableIndex

when I update the thumbnailData of a CSSearchableItem , and index it with CSSearchableIndex.defaultSearchableIndex().indexSearchableItems . but the thumbnail not updating....I try to change the title and contentDescription, this property updated successfully. but the thumbnail is still the old image....

Please file a bug report about this. If you happen to have a sample project that shows the issue that'd be very helpful as well.

Does the thumbnailURL property works??? for me , it does't work in my app....

Yes, it certainly works for me. What kind of URL are you trying to set?

The URL I set is a https URL, does it not works? I set it for thumbnailURL and the result's thumbnail in spotlight is the logo of My app,not the thumbnailURL linked image.....

No, that does not work. From the documentation for thumbnailURL:


The local file URL of the thumbnail image for the item.

I'm having the exact same problem. I even tried to delete the old item first and then reindex upon successful completion but that didn't work either. Were you able to figure out what was wrong or is this really a bug?

It appears to be a bug in CoreSpotlight. I filed a Radar. See https://forums.developer.apple.com/thread/18428

I must say I'm a bit surpised given this is the backing framework for Mail and Calendar search. Oh well. Thanks. I'll file a radar too.

I noticed that items with a thumbnailURL can be updated to a different thumbnailURL but not to a thumbnailData. Also one thumbnailData can not be updated to another thumbnailData. However, an existing thumbnailData can be removed by setting it to nil.


And deleting and re-indexing doesn't help either. Very strange bug.

thumbnailData was not updating after updating item in CSSearchableIndex
 
 
Q