<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreSpotlight",
  "identifier" : "/documentation/CoreSpotlight/CoreSpotlightSource/searchableIndexDelegate",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Spotlight",
      "FoundationModels"
    ],
    "preciseIdentifier" : "s:31_CoreSpotlight_FoundationModels0aB6SourceV23searchableIndexDelegateSo012CSSearchablegH0_pSgvp"
  },
  "title" : "searchableIndexDelegate"
}
-->

# searchableIndexDelegate

An optional delegate object you use to provide additional data about items in search results.

```
var searchableIndexDelegate: (any CSSearchableIndexDelegate)?
```

## Discussion

Use this delegate object to provide detailed information about your searchable items to the model. Some
information in the Spotlight index is searchable, but not recoverable. For example, Spotlight
can’t recover the original text or HTML content you supply for an item. When it needs this information,
the search tool asks your delegate to provide a new [`CSSearchableItem`](/documentation/CoreSpotlight/CSSearchableItem) object with the same
content as the original one.

If you configure the Spotlight search tool to use the [`SpotlightSearchTool.GuidanceLevel.dynamic(_:)`](/documentation/CoreSpotlight/SpotlightSearchTool/GuidanceLevel/dynamic(_:))
guidance level, you can also use this delegate to fill in any missing attributes. Dynamic profiles cause
the tool to search specific attributes of each item. If those attributes aren’t available in the index,
the tool uses your delegate to recreate the item.

If you don’t provide a delegate object, the tool uses only the information it retrieves from the source.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)