Spotlight API should be able to link multiple sttribute sets to a single CSSearchableItem
| Originator: | aditya | ||
| Number: | rdar://32448586 | Date Originated: | May 29 2017 |
| Status: | Open | Resolved: | |
| Product: | iOS + SDK | Product Version: | 10.3 |
| Classification: | Enhancement | Reproducible: | Always |
A common use case for using the CoreSpotlight API is to index documents. Currently, this requires that all the text inside the document be stored in one CSSearchableItemAttributeSet, irrespective of what page they are on. However, this method does not work well when dealing with large documents — the document can only ever be opened to the first page, since once does not get enough metadata when a search result is tapped. The current workaround is to create separate CSSearchableItems for each page, but this would result in unnecessary bloat in the index from the metadata (especially the thumbnails). The API has a nice separation of concerns between an item and its attributes set, so t would be great to be able to specify a "common" attribute set instance, and then add more specific attribute sets for each page.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!