<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreSpotlight",
  "identifier" : "/documentation/CoreSpotlight/CSSearchableItem/init(appEntity:priority:)-7xlow",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core Spotlight",
      "CoreSpotlight"
    ],
    "preciseIdentifier" : "s:So16CSSearchableItemC10AppIntentsE9appEntity8priorityABx_SitYacAC07IndexedF0Rzlufc"
  },
  "title" : "init(appEntity:priority:)"
}
-->

# init(appEntity:priority:)

Initializes a new searchable item with the relevant fields populated from the provided app entity.
Resolves deferred properties before indexing.

```
convenience init<Entity>(appEntity: Entity, priority: Int) async where Entity : IndexedEntity
```

## Parameters

`appEntity`

The app entity to use for initialization.

`priority`

The importance of this item compared to the other donated items.

---

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)