I have a question about Core Spotlight indexing.
I use a method in my main UIViewController
to index data, which works as expected. However, the indexed data stops appearing in Spotlight search some time later (even though the expiry is set to a number of years in the future in most cases).
How should I fix this? I tried making a Spotlight extension (using a copy of the data saved to a shared app Group container), but I don’t know how to check if the extension is working ok or even being called!
I’m just not sure how to get the Spotlight index to persist.
Any help would be greatly appreciated.