<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.6.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreData",
  "identifier" : "/documentation/CoreData/NSPropertyDescription/isIndexedBySpotlight",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Data"
    ],
    "preciseIdentifier" : "c:objc(cs)NSPropertyDescription(py)indexedBySpotlight"
  },
  "title" : "isIndexedBySpotlight"
}
-->

# isIndexedBySpotlight

A Boolean value that indicates whether Core Data adds the property’s value to the Core Spotlight index.

```
var isIndexedBySpotlight: Bool { get set }
```

## Discussion

> Important:
> If you set this property to <doc://com.apple.documentation/documentation/Swift/true> for a property description that describes a relationship, you must override ``doc://com.apple.coredata/documentation/CoreData/NSCoreDataCoreSpotlightDelegate/attributeSet(for:)`` in your Core Spotlight delegate and return the necessary set of attributes. Core Data doesn’t automatically infer indexable information for relationships.

You can also set this property using the Index in Spotlight attribute in the Attributes inspector of the Core Data model editor.

---

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)