---
title: startSpotlightIndexing()
framework: coredata
role: symbol
role_heading: Instance Method
path: coredata/nscoredatacorespotlightdelegate/startspotlightindexing()
---

# startSpotlightIndexing()

Starts the indexing of the store’s entities.

## Declaration

```swift
func startSpotlightIndexing()
```

## Discussion

Discussion After you call this method, the delegate posts a notification whenever the index changes. The type of notification is indexDidUpdateNotification, and its userInfo dictionary contains the keys NSStoreUUIDKey and NSPersistentHistoryTokenKey.

## See Also

### Managing the Index

- [attributeSet(for:)](coredata/nscoredatacorespotlightdelegate/attributeset(for:).md)
- [deleteSpotlightIndex(completionHandler:)](coredata/nscoredatacorespotlightdelegate/deletespotlightindex(completionhandler:).md)
- [stopSpotlightIndexing()](coredata/nscoredatacorespotlightdelegate/stopspotlightindexing().md)
