---
title: NSCoreDataCoreSpotlightDelegate
framework: coredata
role: symbol
role_heading: Class
path: coredata/nscoredatacorespotlightdelegate
---

# NSCoreDataCoreSpotlightDelegate

A set of methods that enable integration with Core Spotlight.

## Declaration

```swift
class NSCoreDataCoreSpotlightDelegate
```

## Overview

Overview note: Core Spotlight integration is only available for persistent stores that have a store type of sqlite, and which use persistent history tracking. For more information, see Consuming relevant store changes.

## Topics

### Creating a Core Spotlight Delegate

- [init(forStoreWith:coordinator:)](coredata/nscoredatacorespotlightdelegate/init(forstorewith:coordinator:).md)
- [init(forStoreWith:model:)](coredata/nscoredatacorespotlightdelegate/init(forstorewith:model:).md)

### Configuring the Index

- [isIndexingEnabled](coredata/nscoredatacorespotlightdelegate/isindexingenabled.md)
- [domainIdentifier()](coredata/nscoredatacorespotlightdelegate/domainidentifier().md)
- [indexName()](coredata/nscoredatacorespotlightdelegate/indexname().md)

### Managing the Index

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

### Updating the Index

- [indexDidUpdateNotification](coredata/nscoredatacorespotlightdelegate/indexdidupdatenotification.md)
- [searchableIndex(_:reindexAllSearchableItemsWithAcknowledgementHandler:)](coredata/nscoredatacorespotlightdelegate/searchableindex(_:reindexallsearchableitemswithacknowledgementhandler:).md)
- [searchableIndex(_:reindexSearchableItemsWithIdentifiers:acknowledgementHandler:)](coredata/nscoredatacorespotlightdelegate/searchableindex(_:reindexsearchableitemswithidentifiers:acknowledgementhandler:).md)

### Structures

- [NSCoreDataCoreSpotlightDelegate.IndexDidUpdateMessage](coredata/nscoredatacorespotlightdelegate/indexdidupdatemessage.md)

### Initializers

- [init(forStoreWithDescription:coordinator:)](coredata/nscoredatacorespotlightdelegate/init(forstorewithdescription:coordinator:).md)
- [init(forStoreWithDescription:model:)](coredata/nscoredatacorespotlightdelegate/init(forstorewithdescription:model:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Integrating with Spotlight

- [NSCoreDataCoreSpotlightExporter](coredata/nscoredatacorespotlightexporter.md)
- [Spotlight record keys](coredata/spotlight-record-keys.md)
- [Showcase App Data in Spotlight](coredata/showcase-app-data-in-spotlight.md)
