<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreData",
  "identifier" : "/documentation/CoreData/NSCoreDataCoreSpotlightDelegate/startSpotlightIndexing()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Data"
    ],
    "preciseIdentifier" : "c:objc(cs)NSCoreDataCoreSpotlightDelegate(im)startSpotlightIndexing"
  },
  "title" : "startSpotlightIndexing()"
}
-->

# startSpotlightIndexing()

Starts the indexing of the store’s entities.

```
func startSpotlightIndexing()
```

## Discussion

After you call this method, the delegate posts a notification whenever the index changes. The type of notification is [`indexDidUpdateNotification`](/documentation/CoreData/NSCoreDataCoreSpotlightDelegate/indexDidUpdateNotification), and its `userInfo` dictionary contains the keys [`NSStoreUUIDKey`](/documentation/CoreData/NSStoreUUIDKey) and [`NSPersistentHistoryTokenKey`](/documentation/CoreData/NSPersistentHistoryTokenKey).

---

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)