---
title: "init(appEntity:priority:)"
framework: corespotlight
role: symbol
role_heading: Initializer
path: "corespotlight/cssearchableitem/init(appentity:priority:)-7xlow"
---

# init(appEntity:priority:)

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

## Declaration

```swift
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.

## See Also

### Getting a searchable item

- [init(uniqueIdentifier:domainIdentifier:attributeSet:)](corespotlight/cssearchableitem/init(uniqueidentifier:domainidentifier:attributeset:).md)
- [init(appEntity:)](corespotlight/cssearchableitem/init(appentity:)-3hv5.md)
- [init(appEntity:)](corespotlight/cssearchableitem/init(appentity:)-89ehq.md)
- [init(appEntity:priority:)](corespotlight/cssearchableitem/init(appentity:priority:)-7h9s.md)
- [init(coder:)](corespotlight/cssearchableitem/init(coder:).md)
