<!--
{
  "availability" : [
    "iOS: 11.0.0 - 15.0.0",
    "iPadOS: 11.0.0 - 15.0.0",
    "macCatalyst: 13.1.0 - 15.0.0",
    "macOS: 10.13.0 - 12.0.0",
    "visionOS: 1.0.0 - 1.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "CoreData",
  "identifier" : "/documentation/CoreData/NSCoreDataCoreSpotlightDelegate/init(forStoreWith:model:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core Data"
    ],
    "preciseIdentifier" : "c:objc(cs)NSCoreDataCoreSpotlightDelegate(im)initForStoreWithDescription:model:"
  },
  "title" : "init(forStoreWith:model:)"
}
-->

# init(forStoreWith:model:)

Creates a Core Spotlight delegate with the specified store description and managed object model.

```
convenience init(forStoreWith description: NSPersistentStoreDescription, model: NSManagedObjectModel)
```

## Parameters

`description`

An object that describes the persistent store that contains the entities to index.

`model`

The managed object model that contains the definitions of the entities to index.

---

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)