<!--
{
  "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/SpotlightSearchTool/GuidanceProfile/attributes",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Spotlight",
      "FoundationModels"
    ],
    "preciseIdentifier" : "s:31_CoreSpotlight_FoundationModels0B10SearchToolV15GuidanceProfileV10attributesSay0aB023SearchableItemAttributeVGSgvp"
  },
  "title" : "attributes"
}
-->

# attributes

The relevant attributes from your content that you want to search.

```
var attributes: [SearchableItemAttribute]?
```

## Discussion

Use this property to specify only the attributes that are relevant for your content. If you
provide a value for this property, the search tool considers only the attributes you specify.
If you don’t specify a value for this property, or set the value to `nil`, all attributes
are available during searches.

---

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)