---
title: isIndexedBySpotlight
framework: coredata
role: symbol
role_heading: Instance Property
path: coredata/nspropertydescription/isindexedbyspotlight
---

# isIndexedBySpotlight

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

## Declaration

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

## Discussion

Discussion important: If you set this property to true for a property description that describes a relationship, you must override 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.

## See Also

### Specifying Spotlight Support

- [isStoredInExternalRecord](coredata/nspropertydescription/isstoredinexternalrecord.md)
